Upload files to Cosmos
- Make a
GETrequest to/v1/uploadsto get a signed URL that you can use to upload a file, and a key to locate the file. Make sure to include the required extension query,?extension=jpeg, to set the file extension for your upload.
Example Request
- Make a PUT request to the the signed URL returned in step 1.
Example Request
- After a successful request from step 2, use the
keyreturned in the response from the request in step 1 to see your file, e.g.https://production-cosmos-assets.s3.amazonaws.com/<key>
