Digital Ocean Spaces File Handling

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?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


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!

Cheers, Sri Charan