services


gallery


tutorials


process


contact


links

Gallery:  ColdFusion ASP PHP Shootout

ColdFusion

ASP

PHP

Handling File Uploads

PHP, ColdFusion and ASP all make use of a standard HTML form with a "File" type Input. Browsers that support the File Input include Netscape Navigator 3 or later, Microsoft Internet Explorer 3 with a patch from Microsoft, or later without a patch.



ColdFusion

The CFFILE tag includes the "Upload" action for receiving an uploaded file. When ACTION="Upload" is used, six other attributes are available for use. With these attributes you can specify (among other things) which file (MIME) types should be accepted, where to save the file on the server, and the attribute to set for the file (e.g., ReadOnly, Archive, Hidden, etc.). You can also specify what to do if a file with the same name already exists in the designated save location.



ASP

To receive an uploaded file with ASP you will have to install a server component. Microsoft offers Posting Acceptor. A widely used 3rd party upload component is SA-FileUp available from http://www.softartisans.com which also includes file download and file management components, which allow you to simply and easily download files from the web server to the user's browser, manipulate files, and perform other functions.



PHP

With PHP's authentication and file manipulation functions, you have full control over who is allowed to upload and what is to be done with the file once it has arrived.



Copyright © 2005 Cyberglitz

email: info@cyberglitz.com