Thunderstone Software Document Retreival and Management
Search:
Advanced Search
Home | Products | Company | News | Tech Support | Demos | Contact Us
Vortex Manual

Variables from Multi-part File Uploads

 

In addition to URL-encoded variables from forms and the URL, Vortex also imports variables from a form-based multi-part file upload, if the user's browser supports them. These are variables of INPUT type file on a FORM. Note: the form encoding type must be explicitly set to ``multipart/form-data'' in order for most browsers to properly send the data:

<FORM METHOD=post ACTION=$url/func.html
    ENCTYPE="multipart/form-data">
  File to upload:  <INPUT TYPE=file NAME=image ACCEPT="image/gif">
  <P>
  Description:     <INPUT TYPE=text NAME=desc>
  <P>
  Action:
  <INPUT TYPE=submit VALUE="Submit">
  <INPUT TYPE=reset  VALUE="Reset Form">
</FORM>

This form would present the user with a file-select dialog box (for the image variable) and a plain text box (for the desc variable). On submission, the browser sends the file the user selected, and the Vortex variable $image would contain the contents of that file. Any other type variables on the form (eg. desc) are imported as usual.


Copyright © Thunderstone Software     Last updated: Wed Sep 10 11:16:28 EDT 2008
 
Home   ::   Products   ::   Company   ::   News   ::   Tech Support   ::   Demos   ::   Contact Us
Copyright © 2008 Thunderstone Software LLC. All rights reserved.