News Feed
Sections




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

PHPBuilder.com:
File uploads made easy
September 03, 2007 @ 11:28:00

PHPBuilder.com has a new tutorial posted to help you create a more complete file upload solution for your web application.

Every time I've written some code to upload a file, either to send it off as an email attachment or as an image for some dynamic content piece, I've always meant to write a few functions so I don't have to write the code again. [...] So I *finally* sat down and wrote this script.

They go through the settings first including the path to put the files in, types that are known and the ones that are allowed. Then its on to the code that creates the form field and handles the upload and validates it. You can download the code for the tutorial here.

1 comment voice your opinion now!
file upload tutorial validation type allow file upload tutorial validation type allow


blog comments powered by Disqus

Similar Posts

DevShed: Null and Empty Strings

Zend Developer Zone: Paging and Sorting Data with Zend Framework, Doctrine and PEAR (part 1)

DevShed: Building a Complete Web Searching Class with Yahoo Web Services and PHP 5

Lehi Sanchez's Blog: The Ultimate Open Source Web Server Installation Part 1

Web Development Blog: Tutorial: Create a zip file from folders on the fly


Community Events





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


composer framework version opinion laravel community podcast library interview tool symfony artisanfiles language security introduction voicesoftheelephpant release conference list series

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