1 Answer
- Newest
- Most votes
- Most comments
1
Unfortunately, this is not a solution.
I also believe that if you upload files to S3 via POST, the Content-Type setting is acceptable to include in the POST payload.
https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTForms.html
This may sound silly, but you should try changing the order in which the form data is assembled, or try submitting the form manually using a curl command or something similar. For some reason, you may notice something wrong when you do so.
Relevant content
- asked 9 months ago
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
Thanks to point me on the correct way. The link provided contains another link to the POST method, and is the key to solve the error: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html "Important When constructing your request, make sure that the file field is the last field in the form.". Looks like AWS stop to process values when read de "file" field, so change the order, fix the issue.