<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>239001</bug_id>
          
          <creation_ts>2022-04-08 08:05:05 -0700</creation_ts>
          <short_desc>iOS File input accepts type not being respected and always uploads a jpeg</short_desc>
          <delta_ts>2022-05-12 11:32:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=238668</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ant Dodds">anthony.dodds</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>cdumez</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1859728</commentid>
    <comment_count>0</comment_count>
    <who name="Ant Dodds">anthony.dodds</who>
    <bug_when>2022-04-08 08:05:05 -0700</bug_when>
    <thetext>On iOS 15 devices given the following form

&lt;form action=&quot;&quot; method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot;&gt;
    &lt;input type=&quot;file&quot; name=&quot;uploaded-file[]&quot; accept=&quot;image/heic, image/heif, image/png&quot; multiple=&quot;multiple&quot; /&gt;
    &lt;br &gt;
    &lt;input name=&quot;submit&quot; type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;
&lt;/form&gt;

When using the &quot;Photo Library&quot; 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 &quot;Choose files&quot;, 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&apos;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,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861807</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-04-15 08:06:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/91807745&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>