Bug 151975 - FileReader cannot read iCloud drive files selected with <input type="file"> in iOS 9
Summary: FileReader cannot read iCloud drive files selected with <input type="file"> i...
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified iOS 9.0
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 173548 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-07 17:19 PST by Warren Ling
Modified: 2022-02-10 19:59 PST (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Warren Ling 2015-12-07 17:19:41 PST
FileReader cannot read iCloud drive files selected with <input type="file"> 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.
Comment 1 Radar WebKit Bug Importer 2015-12-07 19:46:30 PST
<rdar://problem/23796609>
Comment 2 Jon Honeycutt 2015-12-09 00:02:47 PST
Bundles selected from iCloud Drive should be zipped as they are on the Mac. There's an existing radar for this that I don'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's the case for you as well, Warren?
Comment 3 Brent Fulgham 2015-12-09 11:10:47 PST
This is actually Radar <rdar://problem/19009562>
Comment 4 Brent Fulgham 2015-12-09 11:17:27 PST
Basically, the changes in Bug 132713 need to be done on iOS as well.
Comment 5 Warren Ling 2015-12-09 18:08:39 PST
(In reply to comment #2)
> Bundles selected from iCloud Drive should be zipped as they are on the Mac.
> There's an existing radar for this that I don'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's the case for you as
> well, Warren?

I'm using iOS9.1 and tried to select a .numbers file. It's giving an error code 4.
Comment 6 HireHive 2018-06-11 02:29:56 PDT
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'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.
Comment 7 Alexey Proskuryakov 2018-06-11 10:59:27 PDT
*** Bug 173548 has been marked as a duplicate of this bug. ***
Comment 8 zac spitzer 2018-08-06 00:17:29 PDT
I'm also seeing this code 4 error whilst attempting to read images with fileReader from users on ios 11.4.1
Comment 9 Brent Fulgham 2022-02-10 19:59:35 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'.

This should now be fixed in shipping software.