PHP Class that facilitates multiple file upload
- Copy Upload.php to you project directory
require_once('Upload.php');
in the file that handles the upload- Initialize the class and provide the
$_FILES['yourfilesname']
array$upload = new Upload($_FILES['files']);
- Set upload directory or root directory if necessary (default directory is 'upload')
$upload->setDir('github/PHP-File-Multiupload/upload');
- Upload your files using:
$upload->upload();
; - And that's it!**