Skip to content

PUT does not fail when using another file than specified #1

@coniel

Description

@coniel

Thanks for this example, was just what I needed.

I noticed though that in the documentation, it says "If either of these parameters does not match the file which is uploaded in the next step, S3 will throw an error and refuse the upload."

However, the upload succeeds with a different file and even a file with a different MIME type. Also, the link can be used several times (although it expires after a given time).

Is there some configuration that needs to be done to achieve those effects or is the documentation mistaken? I couldn't find anything in the AWS documentation that suggests the signed URL is single use and that the file must match the name and type given when generating it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions