Working with presigned URLs

Depending on the operation you're performing - either an upload or a download - you'll need to take a secondary action after calling the appropriate presigned URL endpoints.


After a successful call to the Presigned Upload URL, you'll need to make a call to the URL returned in the response, you can see the example below:

curl --location --request PUT '' \
--header 'Content-Type: image/jpeg' \
--data-binary '@/path/to/file/locally/IMG-20191219-WA0015.jpg'

If you receive a 200 OK response with an empty body, then the request was successful and you can supply the value of the key to whatever endpoint needs the uploaded file.


Successful Upload

Be aware that a successful upload always returns an empty response body but comes with a 200 OK status.


In the case of downloads, you should simply send a HTTP GET request to the returned URL.