Safe Upload

Package:
Safe Upload
Summary:
Process files uploaded via Web forms
Groups:
Files and Folders
Author:
Ahmed Selim Refaat Ahmed
Description:
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.


Powered by Gewgley