PHP Classes

Simple Upload File Safely: Validate and process uploaded files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 238 All time: 8,055 This week: 488Up
Version Licenses PHP version Categories
simple-upload-safely 1BSD License, GNU ...5.0HTTP, PHP 5, Files and Folders
Description 

Author

This is a simple class to validate and process uploaded files.

It can take the details of a uploaded file and validate it to verify if it has one of the allowed MIME types and its size does not exceed a given limit for its MIME type.

The class can move the uploaded file to a given directory after verifying that it exists, has the necessary write permissions and does not have already a file with the same name.

Picture of hasan movahed
  Performance   Level  
Name: hasan movahed <contact>
Classes: 2 packages by
Country: Iran Iran

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file class-upload.php Class class upload
Accessible without login Plain text file index.php Example demo class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:238
This week:0
All time:8,055
This week:488Up