开发者

Multiple image selection using Ctrl+Click and uploading using PHP

开发者 https://www.devze.com 2023-01-17 09:23 出处:网络
I need to implement a Facebook-style multiple image uploader in my PHP application. It should be possible to select multiple files using Ctrl+click.

I need to implement a Facebook-style multiple image uploader in my PHP application. It should be possible to select multiple files using Ctrl+click. Is there any jQuery plugin开发者_运维知识库 that I can use or any sample code I can refer to?

Please help Thank You


This isn't really possible using a conventional file upload field. You're going to need to use a Flash based upload system. Please consider something like YUI Uploader. It is a Javascript library wrapped around a special file upload system contained in a flash movie. It's remarkably easy to use. There's probably plenty of other alternatives out there too.

EDIT: There is HTML5 functionality for multiple file upload fields now. You can do it like this:

<input type="file" multiple="true" />

Of course this isn't going to be well supported in all browsers. There might be a JS upload library out there that uses HTML5 and then falls back on Flash where HTML5 is not available. May the Google be with you :)


with uploadify you can have the ability to select multiple files for upload. it uses some flash too.

0

精彩评论

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