News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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









Similar Posts

IBM developerWorks: Use an XML database in PHP and Java applications

PHPHacks.com: Generate OpenOffice documents with PHP

Evolt.org: Working With Fractions In CSS and PHP

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 1 - Switch Template Plugins at Will

Joshua Eichorn\'s Blog: PHP AJAX File Upload Progress Meter Updates


Community Events









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


application job book PHP5 releases security ajax release package developer cakephp database conference zend mysql framework example code zendframework PEAR

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