Skip to content

Image upload size negotiation: upload of standard size image fails because too large #1004

@michaelmaguire

Description

@michaelmaguire

When I try to upload a standard Google Pixel 8a photo of about 4.9M into a post on my mstdn.ca server using the standard Mastodon Android client, the upload fails. If I try to upload e.g. a screenshot of my photo, the upload succeeds.

It seems clear that the mstdn.ca server admins have (quite reasonably) set some kind of image upload size limit. However it's inconvenient that standard sized photos are rejected each time.

Example here showing an image which is a screenshot of the originally failed upload attempt:

https://mstdn.ca/@michaelmaguire/114465342140430763

Surely some kind of pre-negotiation could take place to ensure that a suitably quality-reduced image can be uploaded automatically in place of the over-large image. Or perhaps the client can post-negotiate with a retry of a quality reduced upload automatically based on an initial file-too-big failure message from the server. Hopefully the server failure message contains useful information of allowed limits.

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