WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
239001
iOS File input accepts type not being respected and always uploads a jpeg
https://bugs.webkit.org/show_bug.cgi?id=239001
Summary
iOS File input accepts type not being respected and always uploads a jpeg
Ant Dodds
Reported
2022-04-08 08:05:05 PDT
On iOS 15 devices given the following form <form action="" method="POST" enctype="multipart/form-data"> <input type="file" name="uploaded-file[]" accept="image/heic, image/heif, image/png" multiple="multiple" /> <br > <input name="submit" type="submit" value="Submit" /> </form> When using the "Photo Library" option, images that are jpeg can be selected. When submitting the form the reported mime type that is received server side is image/jpeg, which is not listed as an accepted format, the file data received is also jpeg not the accepted formats. If I have saved the files to the device from the photos app and use "Choose files", jpeg files are still selectable, but we do get the correct file data and mime-types for heic/heif, and png files. While there is a work around to get the correct file types we are looking for, getting people to do this isn't reasonable, the desired outcome for this would be if I as a user select a heic/heif for upload the system gets the correct file regardless of where the selection has been made, be this the photos app or choose files. Thanks,
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-04-15 08:06:13 PDT
<
rdar://problem/91807745
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug