of the attachment based on the file extension.
I did a test where I renamed one of my png's to '.tar.gz' and I see in the browser request to the website, it set the file content type as 'application/gzip'
Content-Disposition: form-data; name="image"; filename="Screenshot from 2023-03-30 15-54-47.tar.gz"
Which was then rejected by the site due to it not having an 'image/*' content type:
Failed to upload image: INVALID_CONTENT_TYPE :: Content type: application/gzip is not valid for upload.