CGI Services Architecture
Recent Pages

Environment Variables
Handling Concurrency
Template Processing
RDF Responses
RDF Messaging
URL Rewriting
File Uploads
Sample Authenticated Se ...
HTTP Cookies
Client Authentication

Links on Twitter
CSA Home
Table of Contents



User ID

Campaigns petition banner

File Uploads

CSA supports Form-based File Upload in HTML, as specified in RFC 1867. Only the basic features are currently implemented, but they should be sufficient for most real-world needs.

Given the following HTML code snippet:

 <FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST> 
 File to process: <INPUT NAME="userfile1" TYPE="file"> 
 <INPUT TYPE="submit" VALUE="Send File"> 
the CSA processor at _URL_ will store the uploaded content in a temporary file and the path to that file will be made available to the CSA application processor in the environment variable WWW_userfile1. The CSA library routines will scan the userfile1 parameter for unsafe characters and replace them with safe ones.
Trackbacks (0) | New trackback | Print

This Web Site is Copyright © 2007,2008,2009,2010 Carlo Strozzi, Some Rights Reserved
site map | recent changes | disclaimer