<?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>238668</bug_id>
          
          <creation_ts>2022-04-01 09:55:28 -0700</creation_ts>
          <short_desc>Adding &quot;.stl&quot; files to a &lt;input type=file&gt; transforms it into &quot;.bmp&quot;</short_desc>
          <delta_ts>2023-06-23 08:39:05 -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>Safari 15</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>237219</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=239001</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="Sunny">sunny</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>cdumez</cc>
    
    <cc>jens.viebig</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>1857289</commentid>
    <comment_count>0</comment_count>
    <who name="Sunny">sunny</who>
    <bug_when>2022-04-01 09:55:28 -0700</bug_when>
    <thetext>If a file input has an &quot;accept&quot; attribute with both &quot;.stl&quot; and &quot;.bmp&quot; file extensions (whatever the order):

    &lt;input type=&quot;file&quot; accept=&quot;.stl,.bmp&quot;&gt;

Then, when selecting a file called &quot;my-file.stl&quot;, it shows up as a &quot;tempImageiHA7wr.bmp&quot; instead.

- Input to test here: https://dev.sunfox.org/safari-stl/
- STL example file: https://dev.sunfox.org/safari-stl/cults-logo.stl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1858859</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-04-06 09:12:41 -0700</bug_when>
    <thetext>Seems like exact match should always win indeed, and we shouldn&apos;t be attempting conversion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1858860</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-04-06 09:12:52 -0700</bug_when>
    <thetext>&lt;rdar://problem/91357479&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866385</commentid>
    <comment_count>3</comment_count>
    <who name="Jens Viebig">jens.viebig</who>
    <bug_when>2022-05-04 01:19:43 -0700</bug_when>
    <thetext>We also saw this behavior with other combinations for example:

&lt;input type=&quot;file&quot; accept=&quot;.ts,.m2p,.jpg&quot;&gt;
&lt;input type=&quot;file&quot; accept=&quot;.ts,.m2p,image/jpeg&quot;&gt;

When adding a .ts or .m2p they will be recognized as temp*.jpg


The following &quot;accept&quot; work as expected:

&lt;input type=&quot;file&quot; accept=&quot;.ts,.m2p&quot;&gt;
&lt;input type=&quot;file&quot; accept=&quot;.ts,.m2p,image/*&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963311</commentid>
    <comment_count>4</comment_count>
    <who name="Aditya Keerthi">akeerthi</who>
    <bug_when>2023-06-23 08:39:05 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 237219 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>