Examples

PHP File Uploader Demos

Every sample below runs live — upload a real file and watch it work. Each shows the properties involved and the source behind it, and the evaluation download ships with all of them.

Start here: allowed types jpg, gif, png, zip, maximum 10 MB per file.

MultipleFilesUploadInsertTextMaxSizeKBAllowedFileExtensions
Live demo

Try it: pick several files at once - each gets its own progress bar, and you can cancel mid-transfer.

upload.php
<?php
    require_once "phpuploader/include_phpuploader.php";

    $uploader = new PhpUploader();
    $uploader->MultipleFilesUpload = true;
    $uploader->MaxSizeKB = 10240;
    $uploader->AllowedFileExtensions = "jpeg,jpg,gif,png,zip";
    $uploader->Render();
?>

All samples

Basic examples

Ajax samples

Guides Upload articles

Plain-PHP guides to size limits, error codes, security, chunked uploads and progress bars.

Reference API documentation

Every property, method and server-side event the component exposes.

Get started Download the trial

The evaluation build ships with every sample on this page, with full source.