-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added support to upload files without multipart (HTML5 only) #602
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
Conversation
Added flag to disable multipart form encoding
I found out an issue with Chrome (Version 50.0.2661.49 beta (64-bit)), it appears that I need to use the native File object instead of FileLikeObject. Otherwise, it sends this payload : [Object object] For people having this issue : I had to edit this line in order to make my upload on S3 to work :
|
@josencv , please remove bundled files from PR (angular-file-upload & angular-file-upload.min) |
Should I remove the map files? Also, should I remove them (git rm ), or should I leave the version cloned from your repo? |
You could include in you PR all files except files in |
Done. P.S: I checked out the @poupougnac bug but when I tried his solution the files uploaded to Amazon S3 got corrupted. Don't work for me so I won't add it to this PR. |
I encountered the same issue as @poupougnac. |
Ok. Does anyone have time to investigate this? I don't have much time. @poupougnac do you think it has something to do with the chrome version? I think it may be the content-type header (I sign the url with the image content type as the 'content-type' header, and then make a PUT request to the signed url with the same content type). It's just a quick theory though, |
Sorry, @poupougnac fix was right. I mistakenly used the original release files instead of the fixed one. Added the fix to this PR. |
@josencv thank you for your contribution ✌️ |
For those who have problems uploading to Amazon S3 with pre-signed urls, use this:
And there you go.