Examples

Customizing the UI

A sample demonstrating how to customize the look and feel of the upload script. Here the progress panel, progress text, upload button and cancel button are all supplied by the page.

Allowed file types: jpg, gif, png, zip. Maximum file size: 10 MB.

Upload File

Demo code

<?php
    $uploader = new PhpUploader();
    $uploader->MultipleFilesUpload = true;
    $uploader->MaxSizeKB = 10240;
    $uploader->AllowedFileExtensions = "jpeg,jpg,gif,png,zip";
    $uploader->InsertButtonID = "uploadbutton";
    $uploader->ProgressCtrlID = "uploaderprogresspanel";
    $uploader->ProgressTextID = "uploaderprogresstext";
    $uploader->CancelButtonID = "uploadercancelbutton";
    $uploader->Render();
?>
Testing the demo: the upload button, progress panel and cancel button on this page are ordinary page elements handed to the uploader by id.