Spaces location header on object post

February 2, 2019 2k 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?

Be the first one to answer this question.