Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

iOS reports 0 bytes when uploading small .mov file #2627

Open
deJong-IT opened this issue Oct 1, 2013 · 8 comments
Open

iOS reports 0 bytes when uploading small .mov file #2627

deJong-IT opened this issue Oct 1, 2013 · 8 comments

Comments

@deJong-IT
Copy link

Device: iPad 2
OS: iOS 7.0.2
Browser: Safari & Chrome

When uploading a small .mov file (<1mb) it reports the filesize as 0.00 KB, so it's not possible to upload.

On the demo site it also reports 0.00 KB (besides 'file type not allowed')

@blueimp
Copy link
Owner

blueimp commented Oct 1, 2013

Thanks for your report.

This seems to be related to issues #2611 and #2584.
Unfortunately, I couldn't reproduce this on the iOS simulator.

However, I could reproduce this on an iPhone running iOS7.
I created a reduced test case and the issue is related to the "multiple" property of the file input element:
http://fiddle.jshell.net/4BgFm/2/show/
http://jsfiddle.net/4BgFm/2/

It seems that this is a bug in iOS when selecting video files from a dialog which allows multiple selection.

I've marked this as browser bug and submitted a bug report to Apple (https://bugreport.apple.com).

@deJong-IT
Copy link
Author

Thanks for your quick response.

As a workarround I'll try to remove the multiple property when the user is on iPad or iPhone.

For the rest, I hope Apple will fix it soon :)

@minimaliszmz
Copy link

Ipad 3 Running IOS 7.0.2 having same issue

@ericcoopey
Copy link

Another report from iPad 3 and iPhone 5 both running iOS 7.02, where .MOV files fail to upload.

I can also confirm that removing "multiple" from the input tag does seem to fix the issue (although you can only upload one, obviously).

@blueimp
Copy link
Owner

blueimp commented Oct 4, 2013

Since this is a bug in Apple's iOS and not related to code in jQuery File Upload, please contact Apple with a bug report. Likely they will fix it sooner if more people report in.

@kenmeyers
Copy link

We just confirmed the same fix by removing "multiple" in plupload 2.0 - videos will now load (singly) correctly in iOS 7.

@scaryguy
Copy link

I can also confirm that removing multiple in the input tag did the trick.

Just change this:

<input type="file" name="files[]" multiple >

to this:

<input type="file" name="files[]" >

In my cases, I'm checking browser type and showing multiple if it's desktop and not showing it if current browser is safari.

@christiangenco
Copy link

Here's the two-line Coffeescript patch I'm using on http://dbinbox.com until Apple fixes this:

if /(iPad|iPhone|iPod)/g.test(navigator.userAgent)
  $("input[multiple]").removeAttr("multiple")

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

7 participants