Bug 151975
Summary: | FileReader cannot read iCloud drive files selected with <input type="file"> in iOS 9 | ||
---|---|---|---|
Product: | WebKit | Reporter: | Warren Ling <woranl> |
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Normal | CC: | aestes, anders.kjaer, ap, bfulgham, ddkilzer, dev, jhoneycutt, joepeck, kenpg25, t.tom, webkit-bug-importer, zac.spitzer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | iOS 9.0 | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=132713 |
Warren Ling
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/23796609>
Jon Honeycutt
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?
Brent Fulgham
This is actually Radar <rdar://problem/19009562>
Brent Fulgham
Basically, the changes in Bug 132713 need to be done on iOS as well.
Warren Ling
(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.
HireHive
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.
Alexey Proskuryakov
*** Bug 173548 has been marked as a duplicate of this bug. ***
zac spitzer
I'm also seeing this code 4 error whilst attempting to read images with fileReader from users on ios 11.4.1
Brent Fulgham
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.