Simple PHP File Uploader: Validate and process uploaded files

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 559 All time: 5,370 This week: 254Up
Version License PHP version Categories
php-file-uploader 1.0GNU General Publi...5.3HTTP, PHP 5, Files and Folders
Description Author

This class can Validate and process uploaded files.

It takes an array entry of the $_FILES super-global variable for a given uploaded and file and the path of a directory to copy the uploaded file.

The class also provides a fluent interface to perform several types of validation like limiting the size of the uploaded file, or check if the file name extension or MIME type is one of the allowed, or check if a file already exists with same name in the destination directory.

A validated file is moved to the destination directory eventually renamed if there was already a file with the original name.

Recommendations

Upload any type of files
Check all the files based on the content

PHP code to identify uploaded file format
I need a code to identify the file format of uploaded file

Picture of Pak Xpertz
  Performance   Level  
Name: Pak Xpertz <contact>
Classes: 2 packages by
Country: Pakistan Pakistan
Age: ???
All time rank: 242732 in Pakistan Pakistan
Week rank: 630 Up12 in Pakistan Pakistan Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example of using Uploader class
Plain text file class.UploaderException.php Class Exception Handler CLass
Plain text file class.Uploader.php Class Uploader Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:559
This week:0
All time:5,370
This week:254Up

For more information send a message to info at phpclasses dot org.