Upload async mode - sequential upload of images?

1 Answer 136 Views
Upload
Stefan
Top achievements
Rank 1
Iron
Iron
Iron
Stefan asked on 09 Jan 2023, 08:49 AM

Hi,

one of our customers currently has difficulties uploading multiple images asynchronous. Single images seem to be ok.

We're already using the option Batch(false), so images arrive one at a time at the server.

The uploads seem to occur simultaneously, though. Is there an option to also upload these sequentially, or do we need to use the synchronous mode in this case?

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 12 Jan 2023, 07:51 AM

Hi Stefan,

When using async mode, the component uploads the selected files one after the other by default. The files are uploaded simultaneously if the Concurrent option is enabled: https://docs.telerik.com/kendo-ui/api/javascript/ui/upload/configuration/async.concurrent

In the MVC Upload:

.Async(a => a
    .Save("Save", "Home")
    .Remove("Remove", "Home")
    .AutoUpload(true)
    .ChunkSize(11000)
    .Concurrent(true)
)

If you have it enabled, disable it, because this is the option that enables simultaneous upload.

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Stefan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 13 Jan 2023, 03:28 PM

Hi Ivan,

thx for the info.

We're not using ChunkSize right now. What is the behaviour then? (It looks like concurrent, but it's hard to tell...)

Ivan Danchev
Telerik team
commented on 18 Jan 2023, 02:59 PM

Hi Stefan,

Without ChunkSize and Concurrent set, the files will be uploaded one after the other. When you are uploading very small files, it might look as if the upload is simultaneous, but if you try with bigger files, e.g. 1MB or 2MB, it should be more noticeable that the files are not uploaded simultaneously.

Stefan
Top achievements
Rank 1
Iron
Iron
Iron
commented on 18 Jan 2023, 03:42 PM

Hi Ivan,

thx for the clarification. We will re-test with bigger files, and maybe try the Chunk upload.

Tags
Upload
Asked by
Stefan
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Ivan Danchev
Telerik team
Share this question
or