Rabu, 08 Juli 2015

Secure File Upload Class - PHP Scripts

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








Secure File Upload Class - PHP Scripts | CodeCanyon
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

forms - Secure PHP File Upload Script - Stack Overflow
I am planning on allowing users to upload and download their files (.pdf, .doc, .exl, .ppt, .png, current community. chat blog. Stack Overflow

Top 20+ PHP File Uploader & Downloader Scripts | Web ...
you will find top 20+ PHP File Uploader & Downloader Scripts which will help you to upload images, Secure File Upload Class has support for creating

Secure File Upload with PHP - WebCheatSheet Tutorials
Secure File Upload with PHP: Download Source: PHP makes uploading files easy. Without these requirements, your file upload will not work.

Implementing Secure File Upload in PHP Corpocrat
Most PHP file upload scripts and content management system scripts (CMS scripts) The first thing implement a secure file upload,

33 Useful PHP File Upload Scripts - Freebiesdesign
33 Useful PHP File Upload Scripts. lyva; Jun 10, 2013; Comments Off; In this article we list some useful PHP Script for uploading file. Secure File Upload Class .

Risks of a php image upload form - Information Security ...
If I do let anonymous users upload files, how can I secure the directory the if a user uploads evil.jpg.php, your script will save that as 12345.jpg and it won't

Secure File Download Class - PHP Scripts | CodeCanyon
Protect your files and your server with this small PHP class. Secure File Download Features Hide the PHP Scripts Popular Secure File Download Class

How File Upload Forms are Used by Online Attackers
Why File Upload Forms are a Major do not have secure file upload instructs Apache web server to execute jpg images as if they were PHP scripts. The attacker

PHP File Upload Security Ideas - About.com Tech
When you allow users to upload files to Check to make sure that the information being sent to your script is from Writing to a file from PHP 'Secure File

Secure File Upload Class - PHP Scripts Rating: 4.5 Diposkan Oleh: Verona
 

Top