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

onUploadPogress does not work as expected #21

Closed
sheldon-sminq opened this issue Apr 16, 2018 · 4 comments
Closed

onUploadPogress does not work as expected #21

sheldon-sminq opened this issue Apr 16, 2018 · 4 comments

Comments

@sheldon-sminq
Copy link

We tried the new SDK and the uploadProgress does not return bytes in batches, but directly returns 100%.
Which does not help to display upload progress.

@ifedapoolarewaju
Copy link
Contributor

@sheldon-sminq this is because by default the upload chunk size is set to 2MB. So with a file size <= 2MB, it would all get uploaded at once with no progress update in between. However, for files larger than 2MB, you would get an upload progress for every 2MB chunk uploaded. Does this make sense to you?

@sheldon-sminq
Copy link
Author

Is this setting available per account, as in India we have unpredictable mobile networks and have to compress the image to speed up the image upload.

So most images after compression are between 200Kb to 1.5MB

@ifedapoolarewaju
Copy link
Contributor

Is this setting available per account

as of now, no, but it can be easily added.

@ifedapoolarewaju
Copy link
Contributor

@sheldon-sminq this issue is now fixed and released here. You can now do assembly.setUploadChunkSize(1024*500) to set the upload intervals at which the upload progress should be propagated.

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