Question

Spaces location header on object post

Posted February 2, 2019 2.1k views
Object Storage

I’m working to replace an S3 integration with Digital Ocean Spaces for photo uploading am having issues with the response i’m getting after the post.

According to the S3 docs when you post an object you’re supposed to get a “location” header back with the URI of the object. The response i’m getting back from DO doesn’t include this and I can’t figure out any other way to grab the URI of the object that i’ve uploaded (to add to the model).

Is this intended to be different? I was under the assumption the API was supposed to work the same. If so, how do people normally deal with getting this info?

0 answers
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!