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

How to restrict number of concurrent uploads

2 Answers 110 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Thiam Chye
Top achievements
Rank 1
Thiam Chye asked on 09 Jan 2013, 04:00 AM
Hi there,

Since browsers have restrictions on the number of connections per domain/proxy, is there anyway that I could configure the upload widget to limit the maximum number of concurrent upload connections? This would allow other ajax calls to work while my long running asyn upload is running (which may range from 1-20 files).

Thank you!

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 11 Jan 2013, 04:57 PM
Hi,

The Upload does not currently provide precise control over the number of concurrent request. You can however use the batch option to bundle all selected files in one request:

$("#file").kendoUpload({
    async: {
        saveUrl: "..."
        batch: true
    }
}

The combined size of all files should be considered when configuring the request size limit of the server.

I hope this helps.

Kind regards,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Thiam Chye
Top achievements
Rank 1
answered on 14 Jan 2013, 12:46 AM
Got it. It would be great if this option is placed as a new feature request for the next KendoUI update. We did consider using batch uploads, but we would lose the speed gains of concurrent uploads observed in most environments. Thank you.
Tags
Upload
Asked by
Thiam Chye
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Thiam Chye
Top achievements
Rank 1
Share this question
or