Secure File Upload Class

CodeCanyon Secure File Upload Class 121992
Script \ PHP Script \ Loaders and Uploaders
Upload \ Secure \ Images \ Uploads \ Support \ Jacekk \ Allowed \ Restrict \ Easily

PHP Script - Secure File Upload Class 121992 by betterphp @ CodeCanyon

Script \ PHP Script \ Loaders and Uploaders

Key Features

- Easily upload any type of file

- Securely restrict the types of files allowed by setting white and blacklists for the mime type, the type, and the file extension.

- The file size can be limited to prevent your users uploading huge files.

- Support compression of images

- Supports creating thumbnails

With this class you can easily secure your upload forms, you have the ability to restrict the files allowed in a number of ways.
You can also compress uploaded images to save disk space or create thumbnail images from them with a set width, or height (or both).
It would be very easy to integrate this in to any existing project as it does not require mane lines of code to implement.

Examples

Allowing only image files

$upload = new secure_upload('my_file');
$upload->set_type_whitelist(array('image'));
$upload->save_to('./uploads/' . $upload->name);

Blocking the php file extensions

$upload = new secure_upload('my_file');
$upload->set_extension_blacklist(array('php', 'phtml', 'php3', 'php4', 'php5', 'pht'));
$upload->save_to('./uploads/' . $upload->name);

Resizing an uploaded image to 800 pixels wide.

$upload = new secure_upload('my_file');
$upload->save_image_resized('./uploads/' . $upload->name, 800);

Preview

Documentation: http://jacekk.co.uk/code/secure_file_upload/docs

Image Upload: http://jacekk.co.uk/code/secure_file_upload/

Support

If there are any problems with this item, the best place to ask is in the forum as I check that at least once a day.

http://betterphp.co.uk/board/viewforum.php?f=29

Last Update: N/A; Compatible Browsers: IE6, IE7, IE8, Firefox, Opera, Chrome 4, Chrome 5; Files Included: PHP; Software Version: PHP 5.x.

Advanced Link Tracker; Advanced Directory Indexing; Session Management; php.ini Compatibility; Advanced Error Logging; Data Export Helper; Easy Webstats.

Keywords: class, compress, file, helper, image, resize, secure, upload.


Create CodeCanyon Secure File Upload Class 121992 style with After Effect, Cinema 4D, 3DS Max, Apple Motion or PhotoShop. CodeCanyon Secure File Upload Class 121992 from creative professional designers. Full details of CodeCanyon Secure File Upload Class 121992 for digital design and education. CodeCanyon Secure File Upload Class 121992 desigen style information or anything related.

Comments:

Name:*
E-Mail:*
Add Comments:
Enter Code: *