Login   Register  
PHP Classes
elePHPant
Icontem

Safe Upload

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Ahmed Selim [ Mr.Ajax ]
Name: Ahmed Selim [ Mr.Ajax ] <e-mail contact>
Packages: 2 Browse all classes by Ahmed Selim [ Mr.Ajax ] Browse all classes by
Country: Egypt Egypt - PHP jobs in Egypt
Age: 23
All time rank: 11698 in Egypt Egypt
Week rank: 858 Up10 in Egypt Egypt Down


  Detailed description   Download .zip .tar.gz  
This class can be used to process files uploaded via Web forms.

It checks a given uploaded file and performs several checks before processing it like: checking the file name against a black list of banned names, check if the file already exists in a target directory, check whether the file size is not zero nor exceeds and given limit, check the MIME type against a list of accepted types, check the file name extension against a list of accepted extensions.

Then the class processes the file by moving it to a target directory. If it succeeds, the class returns an array with several details about the file.

  Classes of Ahmed Selim [ Mr.Ajax ]  >  Safe Upload  >  Download .zip .tar.gz  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Safe Upload
Base name: safe_upload
Description: Process files uploaded via Web forms
Version: 1.0
PHP version: 3.0
License: GNU General Public License (GPL)
All time users: 1201 users
All time rank: 2771
Week users: 2 users
Week rank: 1352 Up
 
  Groups   Rate classes User ratings   Trackback   Applications   Files Files  

  Groups  
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (70.0%)
Sufficient (60.0%)
Not sure (50.0%)
Sufficient (65.0%)
-
-
Not sure (52.5%)
1370
Month:
Not yet rated by the users

  Trackback links  
Link Description
Form field security issues If the files stopped appearing 3 months after you removed the contact form then it's very possible that it wasn't the cause of the issue...

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file upload.class.php Class Safe Upload class source file
Accessible without login Plain text file Docs Doc. Documentation of Safe upload
Accessible without login Plain text file example.php Example Example of usinf safe upload

Download all files: safe_upload.tar.gz safe_upload.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.