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

Limit the number of concurrent uploads #164

Closed
whitews opened this issue Mar 18, 2014 · 4 comments
Closed

Limit the number of concurrent uploads #164

whitews opened this issue Mar 18, 2014 · 4 comments

Comments

@whitews
Copy link

whitews commented Mar 18, 2014

Hi,

First, thanks for sharing this extremely useful code. Kudos!

This isn't a bug or really even an enhancement request, but more of a curiosity. I've been experimenting with angular-file-upload and noticed Chrome seems to allow 6 concurrent uploads. Since you have likely used this with many browsers and platforms, could your provide information about the concurrency of the different browsers and whether it is possible to control this capability?

The reason I ask is that I am using this for file sizes in the 20-50 MB range and it would be useful to limit the number of concurrent uploads to 2 or 3 to allow some uploads to finish faster, to avoid re-uploading if some connectivity problem occurs.

Thanks again,
Scott

@danialfarid
Copy link
Owner

You can control that on the client side with some javascript code. Before uploading you will have the number of files and their sizes, so you can limit the concurrency as you like.
As you said this limit is very browsers dependent so it would vary based on browser.

This issue is related #71 if we could manage to integrate the pause/resume api into this plugin.

@darrudi
Copy link

darrudi commented Feb 22, 2015

+1

@griffinkelly
Copy link

@danialfarid How would one go about doing this?

@danialfarid
Copy link
Owner

The feature will be available in angular 2 version and might be ported to angular 1 too once it is released.
For now just implement it manually something like this:
#1307 (comment)

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

4 participants