小一点的可以上传 十兆以上的报错 报错日志是
I/flutter (12484): *** Request ***
I/flutter (12484): uri: https://api.yoyochat.cn/1.1/fileTokens
I/flutter (12484): method: POST
I/flutter (12484): responseType: ResponseType.json
I/flutter (12484): followRedirects: true
I/flutter (12484): connectTimeout: 0
I/flutter (12484): sendTimeout: 0
I/flutter (12484): receiveTimeout: 0
I/flutter (12484): receiveDataWhenStatusError: true
I/flutter (12484): extra: {}
I/flutter (12484): headers:
I/flutter (12484): X-LC-Id: PkE599z4aTBGIxGM4I4XWWFA-gzGzoHsz
I/flutter (12484): User-Agent: LeanCloud-Flutter-SDK/0.7.7
I/flutter (12484): X-LC-Sign: b59fcc2f3cb601ab0220fb9c2e9dcf82,1644307662198
I/flutter (12484): X-LC-Session: 66qfaohxd10zzycyzsk41r70z
I/flutter (12484): content-type: application/json
I/flutter (12484): data:
I/flutter (12484): {name: REC4217732654251976772.mp4, _type: File, mimetype: video/mp4, metaData: null}
I/flutter (12484):
I/flutter (12484): *** Response ***
I/flutter (12484): uri: https://api.yoyochat.cn/1.1/fileTokens
I/flutter (12484): statusCode: 201
I/flutter (12484): headers:
I/flutter (12484): connection: keep-alive
I/flutter (12484): location: /1.1/classes/_File/620224ce328d186424c673d6
I/flutter (12484): cache-control: no-cache,no-store
I/flutter (12484): date: Tue, 08 Feb 2022 08:07:42 GMT
I/flutter (12484): transfer-encoding: chunked
I/flutter (12484): strict-transport-security: max-age=31536000
I/flutter (12484): x-request-biztype: unknown
I/flutter (12484): pragma: no-cache
I/flutter (12484): content-type: application/json;charset=utf-8
I/flutter (12484): server: openresty
I/flutter (12484): Response Text:
I/flutter (12484): {"objectId":"620224ce328d186424c673d6","createdAt":"2022-02-08T08:07:42.509Z","token":"w6ZYeC-arS2makzcotrVJGjQvpsCQeHcPseFRDzJ:6Gc-VAYBnD2x95xbRNPQNSwiyOs=:eyJpbnNlcnRPbmx5IjoxLCJzY29wZSI6IlBrRTU5OXo0IiwibWltZUxpbWl0IjoiISIsImRlYWRsaW5lIjoxNjQ0MzExMjYyfQ==","url":"http://file.yoyochat.cn/nwRW48Se5NpxBpvujMVQuhv6850OKlqq/REC4217732654251976772.mp4","mime_type":"video/mp4","provider":"qiniu","upload_url":"https://upload.qiniup.com","bucket":"PkE599z4","key":"nwRW48Se5NpxBpvujMVQuhv6850OKlqq/REC4217732654251976772.mp4"}
I/flutter (12484):
I/flutter (12484): current29all:30529896
I/flutter (12484): current75all:30529896
I/flutter (12484): current134all:30529896
I/flutter (12484): current136all:30529896
I/flutter (12484): current165all:30529896
I/flutter (12484): current213all:30529896
I/flutter (12484): current383all:30529896
I/flutter (12484): current385all:30529896
I/flutter (12484): current414all:30529896
I/flutter (12484): current501all:30529896
I/flutter (12484): current30529863all:30529896
I/flutter (12484): current30529865all:30529896
I/flutter (12484): current30529896all:30529896
E/flutter (12484): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: DioError [DioErrorType.response]: Http status error [400]
E/flutter (12484): Source stack:
E/flutter (12484): #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:473:35)
E/flutter (12484): #1 DioMixin.request (package:dio/src/dio_mixin.dart:468:12)
E/flutter (12484): #2 DioMixin.post (package:dio/src/dio_mixin.dart:91:12)
E/flutter (12484): #3 LCQiniuUploader.upload (package:leancloudstorage/internal/file/lc_qiniu_uploader.dart:19:15)
E/flutter (12484): #4 LCFile.save (package:leancloud_storage/lc_file.dart:88:26)
E/flutter (12484):
E/flutter (12484): #5 SendForumPageState.build. (package:youyoucontact/page/forum/itempage/send_forum_page.dart:181:40)
E/flutter (12484):
E/flutter (12484):
E/flutter (12484): #0 LCFile.save (package:leancloud_storage/lc_file.dart:99:9)
E/flutter (12484):
E/flutter (12484): #1 SendForumPageState.build. (package:youyoucontact/page/forum/itempage/send_forum_page.dart:181:40)
E/flutter (12484):
E/flutter (12484):
I/flutter (12484): *** Request ***
I/flutter (12484): uri: https://api.yoyochat.cn/1.1/fileCallback
I/flutter (12484): method: POST
I/flutter (12484): responseType: ResponseType.json
I/flutter (12484): followRedirects: true
I/flutter (12484): connectTimeout: 0
I/flutter (12484): sendTimeout: 0
I/flutter (12484): receiveTimeout: 0
I/flutter (12484): receiveDataWhenStatusError: true
I/flutter (12484): extra: {}
I/flutter (12484): headers:
I/flutter (12484): X-LC-Id: PkE599z4aTBGIxGM4I4XWWFA-gzGzoHsz
I/flutter (12484): User-Agent: LeanCloud-Flutter-SDK/0.7.7
I/flutter (12484): X-LC-Sign: 0373d249544582418bfc9241ffd56cf2,1644307668267
I/flutter (12484): X-LC-Session: 66qfaohxd10zzycyzsk41r70z
I/flutter (12484): content-type: application/json
I/flutter (12484): data:
I/flutter (12484): {result: false, token: w6ZYeC-arS2makzcotrVJGjQvpsCQeHcPseFRDzJ:6Gc-VAYBnD2x95xbRNPQNSwiyOs=:eyJpbnNlcnRPbmx5IjoxLCJzY29wZSI6IlBrRTU5OXo0IiwibWltZUxpbWl0IjoiISIsImRlYWRsaW5lIjoxNjQ0MzExMjYyfQ==}
I/flutter (12484):
I/flutter (12484): *** Response ***
I/flutter (12484): uri: https://api.yoyochat.cn/1.1/fileCallback
I/flutter (12484): statusCode: 200
I/flutter (12484): headers:
I/flutter (12484): connection: keep-alive
I/flutter (12484): cache-control: no-cache,no-store
I/flutter (12484): date: Tue, 08 Feb 2022 08:07:48 GMT
I/flutter (12484): transfer-encoding: chunked
I/flutter (12484): content-encoding: gzip
I/flutter (12484): vary: Accept-Encoding
I/flutter (12484): strict-transport-security: max-age=31536000
I/flutter (12484): x-request-biztype: unknown
I/flutter (12484): pragma: no-cache
I/flutter (12484): content-type: application/json;charset=utf-8
I/flutter (12484): server: openresty
I/flutter (12484): Response Text:
I/flutter (12484): {}
I/flutter (12484):