<!--
https://davidwalsh.name/multiple-file-upload
-->


http://www.y3dev.com/fr/upload-de-fichier-html5-avec-barre-de-progression/


http://www.sourceamax.com/mise-en-ligne-de-fichiers-par-drag-and-drop-html5/


http://code.runnable.com/Uf_S3Xx1aGsEAAAN/html5-drag-and-drop-file-upload-for-php

http://yuilibrary.com/yui/docs/uploader/uploader-multiple.html

http://script-tutorials.developpez.com/tutoriels/html5/drag-drop-file-upload-html5/

https://www.script-tutorials.com/html5-drag-and-drop-multiple-file-uploader/

https://github.com/blueimp/jQuery-File-Upload




//get the input and UL list
var input = document.getElementById('filesToUpload');
var list = document.getElementById('fileList');

//empty list for now...
while (list.hasChildNodes()) {
	list.removeChild(ul.firstChild);
}

//for every file...
for (var x = 0; x < input.files.length; x++) {
	//add to list
	var li = document.createElement('li');
	li.innerHTML = 'File ' + (x + 1) + ':  ' + input.files[x].name;
	list.append(li);
}



<!-- IMPORTANT:  FORM's enctype must be "multipart/form-data" -->
<form method="post" action="upload-page.php" enctype="multipart/form-data">
  <input name="filesToUpload[]" id="filesToUpload" type="file" multiple="" />
</form>

if(count($_FILES['uploads']['filesToUpload'])) 
{
	foreach ($_FILES['uploads']['filesToUpload'] as $file) 
	{
	    
		//do your upload stuff here
		echo $file;
		
	}
}






var fileIn = $("#fileToUpload")[0];
    //Has any file been selected yet?
    if (fileIn.files === undefined || fileIn.files.length == 0) {
        alert("Please select a file");
        return;
    }
	
	
	