[Webkit-unassigned] [Bug 239001] New: iOS File input accepts type not being respected and always uploads a jpeg

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 8 08:05:05 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=239001

            Bug ID: 239001
           Summary: iOS File input accepts type not being respected and
                    always uploads a jpeg
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: anthony.dodds at taopix.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

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,

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220408/daec6753/attachment-0001.htm>


More information about the webkit-unassigned mailing list