Simple File Upload with Custom Validation
A basic sample demonstrating the upload script writing straight to a folder via SaveDirectory. Several files can be selected at once, and file size and type are validated on the client before anything is sent.
Allowed file types: jpg, png, gif, bmp, txt, zip, rar. Maximum file size: 1000 MB.
MultipleFilesUploadInsertTextMaxSizeKBAllowedFileExtensionsSaveDirectory
Live demo
Try it: files land in the savefiles folder and each one is linked below the uploader when it completes.
Working the way you need? Download the free trial or see licence pricing from $99.
<?php
$uploader = new PhpUploader();
$uploader->MultipleFilesUpload = true;
$uploader->InsertText = "Select multiple files (Max 1000M)";
$uploader->MaxSizeKB = 1024000;
$uploader->AllowedFileExtensions = "*.jpg,*.png,*.gif,*.bmp,*.txt,*.zip,*.rar";
$uploader->SaveDirectory = "savefiles";
$uploader->Render();
?>
Pricing
Licences from $99
Perpetual licence, free upgrades, no recurring fee. Domain, IP, team and enterprise.
