<?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>232561</bug_id>
          
          <creation_ts>2021-11-01 04:16:24 -0700</creation_ts>
          <short_desc>File.lastmodified not available on iOS when choosing an image</short_desc>
          <delta_ts>2023-08-16 22:17:10 -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>WebKit Misc.</component>
          <version>Safari 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>s7g2vp2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>jesperbendtsen83</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1810585</commentid>
    <comment_count>0</comment_count>
    <who name="">s7g2vp2</who>
    <bug_when>2021-11-01 04:16:24 -0700</bug_when>
    <thetext>When an picture is chosen via an input element on iOS, the File object lastmodified property is not available. It would be very useful if this was set to the date/time that the picture was taken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1810633</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-11-01 09:03:03 -0700</bug_when>
    <thetext>To clarify, would your prefer the behavior where it provides the time from file system, or from EXIF?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1810671</commentid>
    <comment_count>2</comment_count>
    <who name="">s7g2vp2</who>
    <bug_when>2021-11-01 10:13:03 -0700</bug_when>
    <thetext>I think setting it to the file system datetime of the original HEIC file would be best. If the picture was originally created on that device then I guess it would be very close to the EXIF date/time anyway.

If bug 207088 was addressed then we would also have access to the EXIF metadata.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1822303</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-12-09 13:16:57 -0800</bug_when>
    <thetext>&lt;rdar://problem/86287583&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1840843</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-02-12 20:13:02 -0800</bug_when>
    <thetext>This is actually:
&lt;rdar://85146247&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1971467</commentid>
    <comment_count>5</comment_count>
    <who name="Jesper Bendtsen">jesperbendtsen83</who>
    <bug_when>2023-08-16 01:55:36 -0700</bug_when>
    <thetext>Any update on this?

iOS 16.6: Current time is used instead of real lastModified date

Test it here:
https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1971740</commentid>
    <comment_count>6</comment_count>
    <who name="Aditya Keerthi">akeerthi</who>
    <bug_when>2023-08-16 22:17:10 -0700</bug_when>
    <thetext>(In reply to Jesper Bendtsen from comment #5)
&gt; Any update on this?
&gt; 
&gt; iOS 16.6: Current time is used instead of real lastModified date
&gt; 
&gt; Test it here:
&gt; https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified

We believe this is resolved in the latest iOS 17 beta.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>