I'm trying to post to s3, but get back an error of this:
<Error>
<Code>InvalidArgument</Code>
<Message>Conflicting query string parameters: acl, policy</Message>
<ArgumentValue>acl</ArgumentValue>
<ArgumentName>ResourceType</ArgumentName>
<RequestId>AD52BCA534..</RequestId>
<HostId>gdICZHAf...</HostId>
</Error>
What does conflicting query string parameters mean?
If you are using an HTML form to upload the file, make sure you have the form's enctype
set to multipart/form-data
. I was receiving the exact same error before including that attribute.
e.g.
<form action="https://mybucket.s3.amazonaws.com/"
method="POST"
enctype="multipart/form-data">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With