-
Notifications
You must be signed in to change notification settings - Fork 54
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
Upload directly on S3 (putObject) #189
Comments
We just released a new version this morning. Can you try it ? |
it doesn't seem to work :'( Here is the error message: Now even adding requestMethod: PUT in the payload does not seem to change the send method which remains a POST. And if I change it in the hard code I'm in the same situation as with the previous version |
Hello @rudyZanotti, Are you latest version? Also try to remove the Regards, |
Hello @zafirskthelifehacker This is my package.json : And package.json plugin : I see that in the FileUploader.m (iOS) line 131 it says "POST" in hard while I want to do a PUT on my S3 |
Hello @rudyZanotti, Make sure in your package.json, the config is like this: And yes, we don't have Regards, |
Yes i have the latest version. Even if I change FileUploader.m to use the PUT method, I get the same result as my first post (beginning of issue) |
Hello @rudyZanotti, Try to include "Content-Decomposition": "............." in your headers. Also you should check this guide as I think you might have to use Multipart uploads on S3: https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html Regards, |
Made a Fork here: https://www.npmjs.com/package/cordova-plugin-background-upload-put-s3 |
Hello @maxcodefaster, Can you do a PR on this repository? We will review and merge it here. Also you can make pass the method request as a parameter so that it is configurable. Regards, |
Hello,
I am currently trying to upload a video directly to S3 with a signed url retrieved just before ant the put object method.
The video arrives on the S3 bucket concerned, however it arrives corrupted. Indeed when I open the file here is the beginning of its content.
The latter seems to have recorded headers making it unreadable. This is my payload :
I am on iOS and this is my package.json versions :
I hope you can help me 💯
The text was updated successfully, but these errors were encountered: