Tcl Powered!NeoWebScript

Home
 
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
LOAD_MIME_RESPONSE - Neowebscript
Synopsis * Description

In multipart/form-data response, master interpreter creates a temporary directory to receive MIME data

Synopsis

  • load_mime_response [responseVarName] [uploadedDataVar]

Description

In the event of a multipart/form-data response, the master interpreter creates a temporary directory to receive and decode the MIME data. The posted-to file must use load_mime_response to access the MIME data. responseVarName defaults to "response", and uploadedDataVar defaults to "filesUploaded". responseVarName is as in load_response.

uploadedDataVar is the name of an array, indexed by field name, in which to place information about the files uploaded. The information stored in the array is a list as follows:

  • the temporary name of the file on disk
  • the name of the requested file (in the browser) (OS dependent, and may or may not be the full pathname).
  • content-length
  • content-type

The return value of load_mime_response is a list of field names (or else an empty string) which may be used as arguments to open_mime_file.

Note that an additional program, webunpack must be compiled to support file uploads. Webunpack is derived munpack, (C) Copyright 1993,1994 by Carnegie Mellon University, All Rights Reserved, ftp://ftp.andrew.cmu.edu/pub/mpack/

Copyright © 1995-1999 NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA. All Rights Reserved