3 ms·
> So when a user uploads a picture from an iPhone, you either have to load up an extra JS library When I'm uploading a picture straight from an iPhone, using b
by hericium 4y ago
> So when a user uploads a picture from an iPhone, you either have to load up an extra JS library
When I'm uploading a picture straight from an iPhone, using built-in Safari, it's JPG not HEIF. It's got a different name though - RFC 4122 UUID with ".jpeg" extension, not IMG_XXXX.JPG
File uploaded to a tiny Python/Flask app, to make sure no processing is done behind the scenes, is seen by file(1) as:
"9E83B1D4-8AF1-4468-9095-0EE3FEEDF5BE.jpeg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=X, orientation=X, xresolution=X...]" and can be opened with Firefox as your usual JPEG. HTML form asks for enctype="multipart/form-data" and doesn't specify anything about image formatting nor does it care what file type is being uploaded.