Amazon S3 supports file uploads into private buckets via HTML forms, direct from the user’s browser - without an Authentication header.
This is documented for signature v4
and here for v2:
I am currently using code as described in the last link for S3 and I’m not sure how to migrate it to Spaces.
It is basically a php-backed HTML form where I calculate the policy and signatures on the backend using ajax and then let the user POST direct to S3 with the valid values in order to upload the file. Any help welcome!
This textbox defaults to using Markdown to format your 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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!