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