News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WebCheatSheet.com:
Secure File Upload with PHP
January 18, 2007 @ 11:40:00

A new tutorial has been posted to the WebCheatSheet.com website demonstrating a method for secure file uploads with PHP.

In spite of security issues that should be addressed before enabling file uploads, the actual mechanisms to allow this are straight forward. In this tutorial we will consider how to upload files to some directory on your Web server. We will also discuss security issues concerned with the file uploading.

They break it up into the two key parts - the HTML form and the PHP script that handles the resulting upload request. The "secure" part comes in with the validation of the upload. In this case, making sure it's a JPEG file, that its size is less than 350 KB, and that a file by that name doesn't already exist.

6 comments voice your opinion now!
tutorial secure file upload html validation size type unique tutorial secure file upload html validation size type unique


blog comments powered by Disqus

Similar Posts

Channel 9 Forums: Installing PHP Applications on IIS7

Zend Developer Zone: Integrating Propel with the Zend Framework

Eirik Hoem's Blog: Prado Framework 3.1.2 released

Suresh Ariya: Integrate Zend Framework into CakePHP application

Abhinav Singh's Blog: MEMQ : Fast queue implementation using Memcached and PHP only


Community Events





Don't see your event here?
Let us know!


framework series introduction opinion testing install code configure list podcast refactor laravel interview developer community unittest threedevsandamaybe language release symfony2

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework