You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This is a serious bug that prevents any sort of file uploads in iOS8 Safari. There is no known workaround. Below is the content of the bug report I filed with Apple.
Summary:
It seems like there is some issue with access to the files associated with an <input type="file"> element.
A few big issues:
FileReader can't seem to read any files associated with a <input type="file">.
URL.createObjectURL with a file associated with the element returns an object URL that has no content when loaded.
If files are uploaded to a server, even via a simple multipart-encoded form submit, no actual file bytes are sent with the request.
None of these issues occurs in Chrome on iOS8, only Safari.
Steps to Reproduce:
Create a simple form with a file input and a submit button
Create a simple PHP server that handles file uploads via a multipart encoded POST request.
Load the page, select a file, press submit
Expected Results:
File is saved to the server.
Actual Results:
Either an empty file is saved to the server, or the page loading indicator spins forever after clicking submit due to the lack of file bytes included in the request by Safari.
Yes, it seems Apple knew about all of these bugs, chose to ignore them and release a gold master anyway. Hopefully they come to their senses and fix this before release.
As you suggested, UIWebView does not seem to suffer from these issues.
Regarding your suggestion to encourage users to switch to Chrome - keep in mind that video uploads are not possible in Chrome iOS8 at this time due a bug described in #1283.
Yes I am aware of the Chrome issue(s), it was more of an example of a message to show. It could also be used to ask the user to pin the website to the homescreen, or just to point out the bug from Apple.
Not sure what we are going to do yet, but it will likely be a decision we finalize shortly before iOS8 releases, just in case Apple fixes these issues and issues a new pre-release build.
I'm going to have to explore the pinning workaround a bit more. It may be tricky or even impossible to distinguish between a page traditionally loaded in iOS8 Safari and one loaded via a home screen icon. If we can, we will have to display some sort of message for Fine Uploader UI integrations when using iOS8 on Safari. Maybe something similar to what we did in #680.
I'm trying to figure out whether this is linked to browser uploading or that the new iOS crashes the device more often in general. I will play around with this some more over the weekend.
I just uploaded a handful of files and a video in iOS 8.0.2 on an iPhone 5 w/ scaling turned on (using Safari). Everything looks ok at first glance. Going to confirm on an iPad as well.
We'll release 5.0.7 that locks this workaround to anything older than iOS 8.0.2.
FYI: I never experienced the crash in the first upload session in the browser. For it to happen I selected multiple files, waited for these to be uploaded, and then started a new upload session without refreshing the browser.
Looks like there is difference between iPad and iPhone. On iPhone everything works smoothly, but on iPad the upload process crashes the browser frequently. I'm also getting this feedback from my users now...
I'll see if I can reproduce next week. Unfortunately, iOS8 in general is a train wreck, and this is becoming more common with apple software. You might want to encourage users tied to Apple devices to stick with iOS7, or, better yet, iOS6.
Looks like there is difference between iPad and iPhone. On iPhone everything works smoothly, but on iPad the upload process crashes the browser frequently. I'm also getting this feedback from my users now...
Reply to this email directly or view it on GitHub: #1284 (comment)
I found out that it is not the upload process that crashes the browser on the iPad with iOS8+, but it's the image scaling. I now change the scaling option parameter to false for iPad iOS8+ users, but you might want to build this into the iOS8 workaround feature as default.
I found out that it is not the upload process that crashes the browser on the iPad with iOS8+, but it's the image scaling. I now change the scaling option parameter to false for iPad iOS8+ users, but you might want to build this into the iOS8 workaround feature as default.
Reply to this email directly or view it on GitHub: #1284 (comment)
Activity
PatrickBK commentedon Sep 11, 2014
I experience the same issue with iOS 8 GM as well as the previous beta. I see it happening on an iPhone 5s as well as an iPad Air
rnicholus commentedon Sep 11, 2014
Yes, it seems Apple knew about all of these bugs, chose to ignore them and release a gold master anyway. Hopefully they come to their senses and fix this before release.
bjornbos commentedon Sep 11, 2014
Wow, this sucks big time! How about adding a detection feature to FineUploader for iOS8 and Safari, so that we can ask users to switch to Chrome?
bjornbos commentedon Sep 11, 2014
Even more strange: if you pin a website to your homescreen and then start it from there (run it as a single app), the upload works!
rnicholus commentedon Sep 11, 2014
As you suggested, UIWebView does not seem to suffer from these issues.
Regarding your suggestion to encourage users to switch to Chrome - keep in mind that video uploads are not possible in Chrome iOS8 at this time due a bug described in #1283.
I've outlined all new and existing browser-based-upload issues present in iOS in a blog post published yesterday.
bjornbos commentedon Sep 11, 2014
Yes I am aware of the Chrome issue(s), it was more of an example of a message to show. It could also be used to ask the user to pin the website to the homescreen, or just to point out the bug from Apple.
rnicholus commentedon Sep 11, 2014
Not sure what we are going to do yet, but it will likely be a decision we finalize shortly before iOS8 releases, just in case Apple fixes these issues and issues a new pre-release build.
rnicholus commentedon Sep 14, 2014
I'm going to have to explore the pinning workaround a bit more. It may be tricky or even impossible to distinguish between a page traditionally loaded in iOS8 Safari and one loaded via a home screen icon. If we can, we will have to display some sort of message for Fine Uploader UI integrations when using iOS8 on Safari. Maybe something similar to what we did in #680.
rnicholus commentedon Sep 16, 2014
@bjornbos Adding the site to your home screen does not appear to work around the issue for me.
31 remaining items
bjornbos commentedon Sep 26, 2014
It's still kind of buggy... I often get a forced page reload (crash) when uploading multiple items (iPad mini with 8.0.2).
rnicholus commentedon Sep 26, 2014
@bjornbos Is this a new issue as of iOS8? What features do you have enabled on your uploader?
bjornbos commentedon Sep 26, 2014
I'm trying to figure out whether this is linked to browser uploading or that the new iOS crashes the device more often in general. I will play around with this some more over the weekend.
rnicholus commentedon Sep 26, 2014
I just uploaded a handful of files and a video in iOS 8.0.2 on an iPhone 5 w/ scaling turned on (using Safari). Everything looks ok at first glance. Going to confirm on an iPad as well.
We'll release 5.0.7 that locks this workaround to anything older than iOS 8.0.2.
bjornbos commentedon Sep 26, 2014
FYI: I never experienced the crash in the first upload session in the browser. For it to happen I selected multiple files, waited for these to be uploaded, and then started a new upload session without refreshing the browser.
rnicholus commentedon Sep 26, 2014
I'm not able to reproduce.
2 remaining items
bjornbos commentedon Sep 28, 2014
Looks like there is difference between iPad and iPhone. On iPhone everything works smoothly, but on iPad the upload process crashes the browser frequently. I'm also getting this feedback from my users now...
rnicholus commentedon Sep 28, 2014
I'll see if I can reproduce next week. Unfortunately, iOS8 in general is a train wreck, and this is becoming more common with apple software. You might want to encourage users tied to Apple devices to stick with iOS7, or, better yet, iOS6.
On Sun, Sep 28, 2014 at 3:46 PM, Bjorn Bos notifications@github.com
wrote:
anazar commentedon Sep 30, 2014
@rnicholus - any eta on the 5.0.7 release? 5.0.6 blocks uploading on ios 8.0.2... we'd like to re-enable uploading since it's supported now.
rnicholus commentedon Sep 30, 2014
No ETA at the moment. You can disable the workaround via the new
workarounds
option. http://docs.fineuploader.com/branch/master/api/options.html#workaroundsrnicholus commentedon Oct 1, 2014
Fine Uploader 5.0.7, released today, will only target iOS 8.0.0 safari for this workaround.
bjornbos commentedon Oct 5, 2014
I found out that it is not the upload process that crashes the browser on the iPad with iOS8+, but it's the image scaling. I now change the scaling option parameter to false for iPad iOS8+ users, but you might want to build this into the iOS8 workaround feature as default.
rnicholus commentedon Oct 5, 2014
We will look into the iPad specific issue you have mentioned in the near future.
On Sun, Oct 5, 2014 at 10:26 AM, Bjorn Bos notifications@github.com
wrote:
jkodroff commentedon Apr 8, 2015
@rnicholus What's your feel on the issues with iOS8? Have they been largely resolved with 8.latest, or are they still present?
rnicholus commentedon Apr 8, 2015
This particular issue was resolved in iOS 8.0.1.
fix(ios8-safari): only apply workaround to iOS 8.0.0