Skip to content

413 PAYLOAD_TOO_LARGE using a pre-signed URL #2200

Open
@hihosilvers

Description

Hi,
I'm getting a 413 when trying to upload an image of 1.9 MB to S3Mock using a pre-signed URL.

When I try to upload the same photo using the aws-sdk it works fine.
But when I try to use the pre-signed URL I'm getting a 413.

Container logging:
image

Has anyone encountered this before?

Pre-signed URL was generated with the following arguments (using boto3 but the arguments should be the same as in Java):

presigned_post_info = client.generate_presigned_post(
    Bucket=bucket_name,
    Key=key,
    Fields={"acl": acl, "Content-Type": "image/jpeg"},
    Conditions=[
        {"acl": acl},
        {"success_action_status": "201"},
        {"Content-Type": "image/jpeg"},
    ],
    ExpiresIn=expires_in,
) 

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