You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to upload 2 files at a same time. I changed getUploadURLinside scripts.js by adding a for loop for(var i=0; i<=el.querySelector('.file-input').files.length-1; i++){ file_set.push(el.querySelector('.file-input').files[i])}
and added form.append('type', file[0].type,file[1].type) and form.append('name', (file[0].name,file[1].name))
I get Invalid file type () when trying to upload. What else should be changed so that 2 files are upload at the same time
The text was updated successfully, but these errors were encountered:
I solved the issue. Im now able to upload multiple files. Please find the screenshot of code, also let me know if there is better way to do it
acamogh
changed the title
Uploading multiple files at a time
Uploading multiple files at a time (solved)..but wanted to find the better way
Apr 17, 2016
Im trying to upload 2 files at a same time. I changed getUploadURLinside scripts.js by adding a for loop
for(var i=0; i<=el.querySelector('.file-input').files.length-1; i++){
file_set.push(el.querySelector('.file-input').files[i])}
and added
form.append('type', file[0].type,file[1].type)
andform.append('name', (file[0].name,file[1].name))
I get Invalid file type () when trying to upload. What else should be changed so that 2 files are upload at the same time
The text was updated successfully, but these errors were encountered: