Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading multiple files at a time (solved)..but wanted to find the better way #64

Closed
acamogh opened this issue Apr 15, 2016 · 2 comments

Comments

@acamogh
Copy link

acamogh commented Apr 15, 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) 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

@acamogh
Copy link
Author

acamogh commented Apr 17, 2016

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

screen shot 2016-04-17 at 7 59 47 pm

@acamogh 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
@bradleyg
Copy link
Owner

Hey there, s3direct is not setup to upload multiple files at the same time, so closing this out.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants