Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
53 stars 5 forks source link

QE: Handle 413 HTTP status for image too large error #436

Closed pinarol closed 1 month ago

pinarol commented 2 months ago

When uploading large images(> 10mb) the error response comes back as an HTML document, regardless of the Accept header. It seems this isn’t coming from the PHP app and it is something needs to be fixed at the BE. But unfortunately we can't count on it. So until this is resolved we are told that we could interpret 413 HTTP status code responses (for this endpoint) as being too large of an image and hardcode the error message in the client.