Skip to content

Potential Bug: Presigned URL Works with cUrl but not react-s3-uploader #197

@neilchaudhuri

Description

@neilchaudhuri

I have been attempting to solve this issue I posted to Stack Overflow. Long story short at this point, I have found this cURL command works:

curl --upload-file "/Users/me/Desktop/george-goretex-coat.jpg" 'https://my-bucket.s3.amazonaws.com/5c09c130be47e6d7b58aaa65/GEORGE-GORETEX-COAT-af268c79d0.jpg?Content-Type=image/jpeg&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20181221T174741Z&X-Amz-SignedHeaders=host&X-Amz-Expires=586799&X-Amz-Credential=AKIAI4HGTBPUXDEMOS5Q/20181221/us-east-1/s3/aws4_request&X-Amz-Signature=3c61743d37ffc65f186616ce8cd2875ec0e1b960088e9fd6a6c9b17e58991038'

I copied and pasted that presigned url from Chrome Developer Tools after react-s3-uploader got to work. However, react-s3-uploader returns a 403 Forbidden for that same presigned url.

Any ideas on what the difference might be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions