Async Upload Limit

6 posts, 0 answers
  1. Roberto
    Roberto avatar
    3 posts
    Member since:
    Oct 2012

    Posted 19 Jun 2013 Link to this post

    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
  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 20 Jun 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Tomas
    Tomas avatar
    41 posts
    Member since:
    Feb 2011

    Posted 25 Sep 2013 Link to this post

    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.
  5. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 25 Sep 2013 Link to this post

    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!
  6. Tomas
    Tomas avatar
    41 posts
    Member since:
    Feb 2011

    Posted 25 Sep 2013 Link to this post

    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.
  7. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 25 Sep 2013 Link to this post

    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!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready