Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

2 - Work around iOS 7 MOV file size reporting bug #1039

Closed
rnicholus opened this issue Nov 8, 2013 · 18 comments
Closed

2 - Work around iOS 7 MOV file size reporting bug #1039

rnicholus opened this issue Nov 8, 2013 · 18 comments
Assignees
Milestone

Comments

@rnicholus
Copy link
Member

As described in #990, iOS 7 reports MOV files as 0-sized when the associated file input element includes the multiple attribute. It doesn't look like Apple is particularly interested in fixing this bug. So, it seems we will need to properly work around this internally.

The manual workaround for integrators is to set Fine Uploader's multiple option to false. This fixes the issue, but has a potentially undesired consequence. Fine Uploader's multiple option not omits sets the file input element's multiple attribute, it also only allows one file to be uploaded. That is, if a file is in progress, and another file is selected, the in-progress file will be cancelled and the newly selected file will be uploaded instead. If a file has recently completed, and a new file is selected, the new file will replace the older file in the UI as well. Note there is a bug in the code that only cancels the in-progress upload if the multiple option is false in Fine Uploader UI only. This should probably be fixed in a separate bug report.

The internal workaround for this issue will be to omit the file input element's multiple attribute if the validation.allowedExtensions value is any empty array, or if it contains an entry for ".mov" files AND the current OS is iOS 7.

@FL0
Copy link

FL0 commented Sep 10, 2014

I personally have an other error.
With Safari and IOS8, file size is always zero ...
And multiple is set to false ...

@rnicholus
Copy link
Member Author

Looks like you posted a similar issue on stackoverflow. What build of iOS8?

@FL0
Copy link

FL0 commented Sep 10, 2014

The last IOS 8 (GM), and actually all the other beta of IOS8 ...

@rnicholus
Copy link
Member Author

I didn't see this issue in beta 5. Looking at the GM now.

What device?

@FL0
Copy link

FL0 commented Sep 10, 2014

Hmm weird ...
iPhone 5s

@rnicholus
Copy link
Member Author

Not able to reproduce on the iOS8 GM simulator. In fact, looks like apple may have fixed #1269. I'm going to try GM on an iPad shortly.

@rnicholus
Copy link
Member Author

...what version of Fine Uploader are you running?

@FL0
Copy link

FL0 commented Sep 10, 2014

I'm running version 5.0.2.
Maybe my code is wrong, but, it works with Chrome on the same IOS ...

@rnicholus
Copy link
Member Author

Just tested the iOS8 GM simulator against 5.0.5 and fineuploader.com/demos (which is running 5.0.2) - not seeing any issues in Safari. I'll let you know when I verify on an actual device.

@FL0
Copy link

FL0 commented Sep 10, 2014

I tested with an iPhone 4, IOS7, and it works ...

@rnicholus
Copy link
Member Author

Hmm, an iPad running iOS8 GM is indeed having this issue. Not sure why the simulator works just fine. I'll have to investigate further.

@FL0
Copy link

FL0 commented Sep 10, 2014

hmm it's annoying ...

@rnicholus
Copy link
Member Author

Looks like Safari in iOS8 is completely busted for ajax file uploads. This doesn't seem to only affect Fine Uploader.

And I am so far unable to hook up the web inspector in my desktop safari to my iPad running iOS8.

@FL0
Copy link

FL0 commented Sep 10, 2014

Ok

@rnicholus
Copy link
Member Author

Looks like the file input element is totally busted in iOS8 safari. I can't even upload a file with a simple form submit. Chrome works, but I'm also seeing Chrome crash after clicking the choose files button if the multiple attribute is present on the file input. Are you seeing this too?

@rnicholus
Copy link
Member Author

...sorry, I mean that Chrome crashes if the multiple attribute is NOT present. This happens after I click on the file input and then choose either "Choose Existing" or "Take Photo or Video".

@rnicholus
Copy link
Member Author

Tracking the latest iOS8 safari issue in #1284, and the Chrome issue in #1283.

@FL0
Copy link

FL0 commented Sep 11, 2014

Yeah, file input element seems busted in Safari IOS8. even in a simple form (no js) ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants