6

I want to create a multi file uploder using HTML5 and PHP5. I don't want to use any flash player for support. Flash uploader will not support in iphone. I created the form like this

<form name="uploader" method="post" action="" enctype="multipart/form-data">

    <input type="file" name="images[]" id="images" multiple="multiple" />

    <input type="submit" name="button" value="Submit" /> 

</form>

It is working with chrome, mozilla, opera, safari... but IE not supporting this.

I tried with IE8 and IE9 both are not supporting. How can I fix this? Anybody who knows the solution please kindly help me.

hakre
  • 193,403
  • 52
  • 435
  • 836
learner
  • 2,099
  • 6
  • 23
  • 32

4 Answers4

19

A few things:

  1. IE doesn't support multiple file upload
  2. Flash is currently the way to get round that, or just to drop to single uploads in IE
  3. The iPad doesn't support Flash, but also doesn't support file uploads
  4. The usage of IE is much higher than iOS

So, the logical conclusion is either:

  • Use multiple uploads in new browsers, and single in older ones – IE users won't notice, as they have never been able to upload multiple files anyway!

  • Use Flash as a fallback in older browsers

(Update: iOS6 now does allow file upload, including multiple uploads)

Rich Bradshaw
  • 71,795
  • 44
  • 182
  • 241
9

IE8 does not support HTML5. Perhaps IE9 is running in compatibility mode? Press F12 to bring up the developer tools and in the top menu you can change the settings in what mode it is in.

Maybe it is a solution to use a Java or Flash based system for multiple uploads. Also, these will also usually support drag and drop of files.

Craig White
  • 13,492
  • 4
  • 23
  • 36
  • Hi Craig White I cant use java my site is already started to develop using PHP5. Also I cant use flash its not supporting in Ipads. I changed IE9 browser mode still its not working? – learner May 13 '11 at 06:21
  • I am not referring to java on a server side. You can running Java applets on the users side without having compatibility on your site. It simply communicates with your PHP. But flash is a much better solution as it is more common and doesn't require special permissions to run. – Craig White May 13 '11 at 10:32
4

IE9 does not support multiple file uploads or the File API, according to this source. Here is another thread on SO asking the same question with the same answer. Like Craig says, your best bet for now is to use Flash as a replacement in IE and older browsers; such a solution is employed by Dojo 1.6.

Community
  • 1
  • 1
TNi
  • 16,070
  • 3
  • 22
  • 20
  • flash player is not working with Ipads so I am trying with jquery and HTML5 – learner May 13 '11 at 06:34
  • 6
    But iPads don't support file upload from the browser anyway, correct? – Stoive May 13 '11 at 06:45
  • If you are not tied down to jQuery, the Dojo site I linked to does have a solution to this without Flash (using an IFrame). I don't know how it looks, but you may want to look at it. But if not, I love jQuery, so by all means, proceed. – TNi May 13 '11 at 06:47
  • Excellent point, Stoive. Learned something new today, it seems. Relevant source: http://stackoverflow.com/questions/4081997/upload-files-via-ipad – TNi May 13 '11 at 06:48
0

Two potential fallback options:

james.garriss
  • 12,959
  • 7
  • 83
  • 96