This is a migrated thread and some comments may be shown as answers.

Async Upload Limit

5 Answers 412 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 19 Jun 2013, 09:42 PM
We use the Kendo Upload to allow customers to upload large number of files for processing.
Some of our customers in countries with poorer internet have run into bandwidth restrictions when trying to upload a large number of files (i.e a 100 files) simultaneously.

The files themselves are not very large, but the number of files causes a problem. To get around this, is it possible to set a upper limit on the number of async uploads that may be in progress at any given time?

So that if there are 20 files selected and added, I'd like them to upload in 2 batches of 10.

Thanks,

Roberto

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Jun 2013, 09:13 AM
Hello Roberto,

You can use the Upload's select event.

http://demos.kendoui.com/web/upload/events.html

http://docs.kendoui.com/api/web/upload#events-select


Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tomas
Top achievements
Rank 1
answered on 25 Sep 2013, 12:22 PM
Could you please post a demo how to do that? We also find out that many files are dropped while large number of files are uploading.
0
Dimo
Telerik team
answered on 25 Sep 2013, 12:45 PM
Hello Tomas,

Can you please specify which aspect of using the Kendo UI Upload select event is not clear, so that we can improve our documentation?

http://docs.kendoui.com/api/web/upload#events-select

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tomas
Top achievements
Rank 1
answered on 25 Sep 2013, 12:48 PM
Following Roberto idea we would like to upload files one by one using async mode. We have problem when many file uploads are dropped if all files uploaded at once from many users. For me it is not clear how to use Select Event to let user upload file one by one.
0
Dimo
Telerik team
answered on 25 Sep 2013, 01:40 PM
Hello Tomas,

Multiple files are uploaded in separate requests by default, but not one by one. This may create problems if the files are too many. In this case you can try uploading them in a single request by setting async.batch to true.

http://docs.kendoui.com/api/web/upload#configuration-async.batch

Since you have no control over the sequentiality of the upload process, your only other option is to count the files to be uploaded in the select event and prevent the user from selecting too many files at once.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Roberto
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Tomas
Top achievements
Rank 1
Share this question
or