Selecting multiple files for upload (AJAX)
PHP File Uploader lets you select and upload several files at once. When the queue finishes, the file list is posted to a handler page over AJAX and each processed file is reported back.
Demo code
<?php
$uploader = new PhpUploader();
$uploader->MultipleFilesUpload = true;
$uploader->MaxSizeKB = 10240;
$uploader->Name = "myuploader";
$uploader->InsertText = "Select multiple files (Max 10M)";
$uploader->AllowedFileExtensions = "*.jpg,*.png,*.gif,*.bmp,*.txt,*.zip,*.rar";
$uploader->Render();
?>
<script type="text/javascript">
function CuteWebUI_AjaxUploader_OnPostback()
{
// POST uploader.value (the guid list) to your handler page
}
</script>
Testing the demo: upload a few files — each one is reported below the uploader once the handler has processed it.
