Are browser-based uploads supported by Spaces?

March 21, 2018 3.3k views
Development API

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!

1 comment
  • Hi! were you able to solve this?

    I’m also interested in the exact same thing, but I can’t find much information.

3 Answers


DO Spaces is pretty much compatible with any S3 clients and or apis

  • Thank you - however I’ve not managed to make this work so far, I always get errors when just replacing endpoint and key/secret on my current scripts. There doesn’t seem to be any documentation on this form of authentication / non-REST upload in DO docs!


so you can do this on DO, using a different technique:

combine these things:
Use the “Using temporary access credentials” technique from here:

and then obvs this stuff server side:

Have another answer? Share your knowledge.