varovas's avatar

VueJS mutiple file uploads

Hi, I have a question. Is there any way to upload images one by one? For example, user uses input file to upload multiple images (for example 4 images). And I need to upload them 1 per request.

0 likes
4 replies
Talinon's avatar

@varovas May I ask why you require to make a separate request for each file?

I can't think of any reason why you would want to do this when you could just iterate over the array of files and perform whatever individual operation is required per file.

But, a quick short answer is: yes, it's possible.. you could use a promise-based approach where each file is uploaded one after the other.

varovas's avatar

@talinon I need separate requests, because user can upload up to 30 photos and photo file size can be up to 16mb. So total upload size can be about 480 mb. I want him to see that images are uploading and gets visible one by one in UI.

Talinon's avatar

@varovas I would give filepond a try as it has asynchronous file uploads, a nice UI, and a Vue adapter.

Please or to participate in this conversation.