HTML:
<input type="file" value="choose file" name="file[]" multiple="multiple"/><br/>
<input type="submit" class="submit" value="confirm" />
<input type="hidden" name="uploadFiles" />
</form>
PHP:
if (isset($_POST['uploadFiles'])) {
$fileCount = count($_FILES["file"]["name"]);
for ($i = 0 ; $i < $fileCount ; $i++ ) {
checking......
move_uploaded_file($_FILES["file"]["tmp_name"][$i],$fileName);
}
}
Currently I am using the above way to upload the files, I found that the Jquery UI provide the progress bar function but I have to provide the upload status to it. Therefore, what approach I can choose to get the status?