-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
pass multiple files to upload #69
Conversation
Added a check to support multiple files passed to upload method. For browsers that support multiple files selection. I needed to pass multiple files to server instead of one file per request. Tested on Latest Chrome and IE9.
I tested it on IE9 with flash fileAPI. It works. I'm not sure how to upload the swf to plunker to create the demo. I'll look for other service where I can create a demo |
As you can see in this demo: http://1-test-multi.angular-file-upload.appspot.com/ Uploading a bunch of files together is not a good design since uploading is typically a time consuming process and better to be done in smaller steps with a feedback. |
Some almost related notes: |
Your example worked for me in IE9. I'm using ASP.NET and the change I made worked for me with IE9 as well. Of course single file can be selected in IE9 with file input type (without flash button). Have not tested with IE8 |
IE9 should always load flash button since FormData is not supported: https://developer.mozilla.org/en-US/docs/Web/API/FormData. |
OK I did further troubleshooting, couple of things I've found.
|
ok I updated the demo http://1-test-multi.angular-file-upload.appspot.com/ with your code. |
Your code seems to send each file individually. You will have to pass files array
|
No it doesn't. It sends $scope.selectedFiles which are all the files. |
You are right! Each file is sent as separate request in IE9/8. I should have inspected requests with fiddler sooner. I was happy that files got uploaded without running through loop. Sorry for all the confusions :\ |
Ok i added this to version 1.1.11. |
Added a check to support multiple files passed to upload method. For browsers that support multiple files selection. I needed to pass multiple files to server instead of one file per request. Tested on Latest Chrome and IE9.