开发者

can i make file dialog in input type file in html to be multi select?

I want to implement a multi file upload I was thinking if its possible to have a browse button o开发者_C百科pen a file dialog which may allow me to select more than one file and once i select them these files can upload. I am doing this on a website and using php jQuery etc.

By looking at the answers i feel that multi-select is not possible. So i am updating my question to this : Can i select a zip file and get a set of file objects inside zip file and then work on individual file objects.


In some of the more up-to-date browsers that support HTML5 (i.e. Firefox, Chrome, Safari), the multiple attribute will work:

<label>Select files: <input name="files" type="file" multiple></label>


Gmail allows selecting multiple files as attachments by using a Flash control just for the upload.


Nope, that's not possible, you can specify one file at a time for a single file type. On the other hand, you might want to have a look at:

  • jQuery Multiple File Upload Plugin
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜