Search code examples
angularjsng-file-upload

Is there an upload queue feature for ng-file-upload?


Would it be possible using this library? I've used this one for uploading a single file or a batch of files but it only creates a single http request, just like the samples in its github page. What I'm looking for is have an upload queue for the user's upload files so that he/she can still select another file for upload while previous file is still in uploading.


Solution

  • You can just have an array (queue) in your javascript code that holds all the files and once a new file is selected start uploading it and push it to the array.

    Alternatively you could achieve this by adding ngf-keep="true" directive which will keep adding the new files to the model while holding the previous ones.