Multiple image selection using Ctrl + Click and uploading using PHP

I need to implement a facebook style multiplayer downloader 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 that I can reference?

Please help. Thank you.

+3
source share
2 answers

This is really not possible using the usual file upload field. You will need to use a Flash-based download system. Please consider something like YUI Uploader . This is a Javascript library wrapped around a special file upload system contained in a flash movie. It is remarkably easy to use. There are probably many other alternatives.

EDIT: Now there is an HTML5 function for several file upload fields. You can do it as follows:

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

Of course, this will not be well supported in all browsers. There might be a JS download library that uses HTML5 and then reverts to Flash, where HTML5 is not available. Let Google be with you :)

+5
source
0

Source: https://habr.com/ru/post/1765717/


All Articles