Skip to content
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

Progress for uploads not working on iOS #2087

Open
shannah opened this issue Apr 13, 2017 · 1 comment
Open

Progress for uploads not working on iOS #2087

shannah opened this issue Apr 13, 2017 · 1 comment

Comments

@shannah
Copy link
Collaborator

shannah commented Apr 13, 2017

For multipart requests with large file uploads, iOS first buffers the body to disk before performing the request. This results in progress listeners reporting the progress of the initial writing the body to disk, but will just sit at 100% while the actual network request is created.

For iOS, we'll need to hook the progress listener into the NSNetworkConnection delegates' (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite callback as shown in this SO post

@javieranton-zz
Copy link
Contributor

javieranton-zz commented Aug 21, 2020

Hi shannah, I just pulled a request with a lib that does this (multipart, ios and android). just fyi

https://github.com/javieranton-zz/ProgressUploader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants