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
(e.g. desc
) are imported as usual.