Uploading Files to S3

This article shows how to use the information returned from the API's /pre_upload endpoint to upload a file to S3 via Postman.

Create a PUT request using the "s3_url" from the /pre_upload request's response. 

Add the four values from the response's "authorization_headers" to the headers in the PUT request:

  • Content-Type
  • X-AMZ-Content-SHA256
  • X-AMZ-Date
  • Authorization

The values for each header should be copied from the /pre_upload request's response exactly as-is.

After adding the headers, switch to the Body tab and select the "binary" format. Locate and upload the file into the input field.

Send the request and verify that a 200 response was returned, indicating a successful request. Make another request to the CxAlloy /post_upload endpoint to finish the upload.

Still need help? Contact Us Contact Us