-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dio post formData file and cost memory to large #1899
Comments
Consider upgrade to the latest version and provide a minimal reproducible example. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I update dio to 5.3.0 and cause another problemSImple minimal reproducible example. Expected Result DioException [unknown]: null |
This is not a reproducible example. Please see the migration guide if acquired. |
final mpFile = await m_dio.MultipartFile.fromFile(realLocalPath, filename: encodeFileName); |
This comment was marked as spam.
This comment was marked as spam.
提供细节?通过什么方式判断整个文件读进了内存中? |
邮件已收到。谢谢!
|
Package
dio
Version
^4.0.0
Output of
flutter doctor -v
Dart Version
2.18.0
Steps to Reproduce
var response = await _dio.post(signedUrl, cancelToken: _cancelToken, data: formData);
Expected Result
cost large memory
上传大的视频或者文件,消耗大内存,并没有释放。
Actual Result
不占用大内存,如何及时释放内存
The text was updated successfully, but these errors were encountered: