Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For uploading multiple files at the same time, I will follow the steps-</p> <ol> <li>First I when the form will be submitted, depending on the number of file selected I will dynamically create that much different number of independent ajax request through javascript(Jquery will help for that).</li> <li>While uploading the files, I can monitor through the javascript and one server script that how much data is remaining to upload, based on that I can show the progress bar for each of the files being uploaded.</li> <li>Next in server side, I don't need to worry about because the php script what one will write that will take all the request separately.</li> </ol> <h2>How to monitor the Uploading progress</h2> <blockquote> <p>In small files, you may not get the exact progress details because it will upload very fast but in large file you can monitor.</p> </blockquote> <p><br/> What you will have to do is creating a separate PHP file which will generate the information that how much % file is uploaded, through the session variable <code>$_SESSION</code>, when a file is started uploading it creates a session for it and how much data is processed is stored(in bytes) and what is the file size(in byte) in the keys <code>bytes_processed</code> and <code>content_length</code> respectively.<br/> And that information I will process through javascript by sending another request. And that request will be made for each of the files being uploaded by binding, and after limited number of time(may be 1 sec.) I will again send the request for knowing the progress by <code>setTimeout()</code> till when the file is 100% is uploaded.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload