I am using presigned URLs to upload files (urls are generated via Go code), is there a way to enforce a certain content type and make the uploaded file public for reads prior or after upload?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


You can, for both and they would need to add those parameters to the code, for example here is the Go SDK for uploading; let me see if I can find an example where params has been added too.

Refer to below link:


eg like this curl(but same thing in the Go code in needed), it has a header for content-type:

curl -X PUT \
-H “Content-Type: text” \
-d “The contents of the file.” \

Few more links, which will likely be helpful too:


Hope this helps!

Sri Charan