There occur circumstances when there is a need to upload full contents of a directory to a web server.It is always difficult to upload files one by one.
The things that must be done:
1.Select multiple files:
    This is accomplished by an extra word in html input tag
                  <input type='file' name='file[ ]' multiple> 
Now it is possible to select multiple files from the browse directories window. Example for multiple file selection:



2.Upload these files to a destination using PHP:
   The PHP script that may be used to perform the upload: