-
-
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
File upload send progress goes too fast #2377
Comments
Could you help to build a reproducible example with httpbun.com ? |
Are they gonna let me upload random files with 2 hours of audio data? In terms of the Have you tried running a file upload with |
Oh, that was unsure for sure. :)
No, I'm not near my Mac.
Yes, the callback used to work IIRC. The library uses the HttpClient as the underlying implementation, if the problem does not come from it, it should be some recent changes that break the behavior. I just glanced at our tests and unfortunately, we seem not to have proper tests about it.
What I wanted to say is that the bug reporter is the one nearest to the repro environment, which would make it easy to provide a reproducible example. |
I have a Flutter app running on a Mac that uses Dio to assist my application media download and uploading process. I'm using Dio version 5.8.0+1. This issue doesn't seem to appear on my side. I did have your scenario as the progress isn't the actual binary transmission size to the end but the progress to transmit the file somewhere in local memory. But after that I realized that is because I have a local network proxy that will redirect the file from local to the actual ends for some security purposes. Maybe you can double checked again whether the upload link you used has this kind of local proxy that lets the file binary transmit into the memory then only redirect to the actual ends? |
I've contacted the podcast service asking them to verify what's actually happening during the request. I thought that perhaps they're uploading AND transcoding within a single request. If so, that would explain the discrepancy. I'm waiting to hear back from them. |
Package
dio
Version
5.8.0+1
Operating-System
MacOS
Adapter
Default Dio
Output of
flutter doctor -v
Dart Version
3.6.0
Steps to Reproduce
Here's a code sample that I'm using to upload an mp4 audio file:
Expected Result
The "send progress" reflects the amount of data sent to the server, at the rate it's actually being sent.
Actual Result
The "send progress" reflects the data that's loaded into memory, or otherwise processed on the client side. The progress goes way too fast. I'm stuck sitting at 100% for about a minute as my large audio file uploads to the server.
The text was updated successfully, but these errors were encountered: