<?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>151975</bug_id>
          
          <creation_ts>2015-12-07 17:19:41 -0800</creation_ts>
          <short_desc>FileReader cannot read iCloud drive files selected with &lt;input type=&quot;file&quot;&gt; in iOS 9</short_desc>
          <delta_ts>2022-02-10 19:59:35 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>iOS 9.0</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=132713</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="Warren Ling">woranl</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>anders.kjaer</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>dev</cc>
    
    <cc>jhoneycutt</cc>
    
    <cc>joepeck</cc>
    
    <cc>kenpg25</cc>
    
    <cc>t.tom</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zac.spitzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1147123</commentid>
    <comment_count>0</comment_count>
    <who name="Warren Ling">woranl</who>
    <bug_when>2015-12-07 17:19:41 -0800</bug_when>
    <thetext>FileReader cannot read iCloud drive files selected with &lt;input type=&quot;file&quot;&gt; in iOS 9

Repro Case:
http://jsbin.com/yucavaxiyufi/1/

Repro Steps:
a. Open above repro case on iOS 9.
b. Select a file from iCloud drive.
c. Watch the read fail with error code 4: FileError.NOT_READABLE_ERR.

Possibly related to Bug 136117.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1147160</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-12-07 19:46:30 -0800</bug_when>
    <thetext>&lt;rdar://problem/23796609&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1147611</commentid>
    <comment_count>2</comment_count>
    <who name="Jon Honeycutt">jhoneycutt</who>
    <bug_when>2015-12-09 00:02:47 -0800</bug_when>
    <thetext>Bundles selected from iCloud Drive should be zipped as they are on the Mac. There&apos;s an existing radar for this that I don&apos;t have on hand right now. Non-bundles such as text files selected from iCloud Drive are readable for me using FileReader on 9.1. Can you confirm that that&apos;s the case for you as well, Warren?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1147864</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-12-09 11:10:47 -0800</bug_when>
    <thetext>This is actually Radar &lt;rdar://problem/19009562&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1147866</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-12-09 11:17:27 -0800</bug_when>
    <thetext>Basically, the changes in Bug 132713 need to be done on iOS as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1148018</commentid>
    <comment_count>5</comment_count>
    <who name="Warren Ling">woranl</who>
    <bug_when>2015-12-09 18:08:39 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Bundles selected from iCloud Drive should be zipped as they are on the Mac.
&gt; There&apos;s an existing radar for this that I don&apos;t have on hand right now.
&gt; Non-bundles such as text files selected from iCloud Drive are readable for
&gt; me using FileReader on 9.1. Can you confirm that that&apos;s the case for you as
&gt; well, Warren?

I&apos;m using iOS9.1 and tried to select a .numbers file. It&apos;s giving an error code 4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1431732</commentid>
    <comment_count>6</comment_count>
    <who name="HireHive">dev</who>
    <bug_when>2018-06-11 02:29:56 -0700</bug_when>
    <thetext>This is the same issue I have ticketed.
https://bugs.webkit.org/show_bug.cgi?id=173548

I believe I narrowed down the issue a little further.

If a file is in a users iCloud but was never accessed on the mobile device then uploading it via a file input will throw the error.

However, if the file is viewed/opened in another application first then the file will upload.

We get dozen of these issues a day on our application. Each time it&apos;s a user uploading a file from iCloud.

These are résumé files they created on their laptops and then access on their phone for applying to job openings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1431961</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-06-11 10:59:27 -0700</bug_when>
    <thetext>*** Bug 173548 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1448059</commentid>
    <comment_count>8</comment_count>
    <who name="zac spitzer">zac.spitzer</who>
    <bug_when>2018-08-06 00:17:29 -0700</bug_when>
    <thetext>I&apos;m also seeing this code 4 error whilst attempting to read images with fileReader from users on ios 11.4.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1840138</commentid>
    <comment_count>9</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-02-10 19:59:35 -0800</bug_when>
    <thetext>The fix for this issue was needed outside the WebKit project, therefore this is being resolved as &apos;Moved&apos;.

This should now be fixed in shipping software.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>