Examples

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.

MaxSizeKBMultipleFilesUploadInsertTextAllowedFileExtensions
Live demo

    Try it: upload a few files — each one is reported below the uploader once the handler has processed it.

    Working the way you need? Download the free trial or see licence pricing from $99.

    ajax-multiple.php
    <?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>
    Guide Uploading multiple files in PHP

    How the $_FILES array is shaped and how to process a batch safely.

    Reference API documentation

    Every property and server-side event the component exposes.

    Get started Download the free trial

    The evaluation build ships with these samples and full source.

    Pricing Licences from $99

    Perpetual licence, free upgrades, no recurring fee. Domain, IP, team and enterprise.