Download OSAS Web (OW) - White Ware, Inc

Transcript
Toolkit Program Functional Listing
Reference
File Uploading
Forms that have been specified as "method=post enctype=multipart/form-data" are
handled by utcgi.wbb. Any field types of "file" are stored in a temporary file, and
the file name is stored in the cgi$ field. For example, if a form contains a file field
named "datafile", a text field named "name", and the user filled in
"c:\files\customers.dat" for the datafile field, then cgi$ might look like this:
cgi.name$="xyz"
cgi.datafile$="/tmp/bw123999.dat"
The extension of the uploaded filename is retained, but the name is changed to
guarantee its uniqueness. The original file name is stored in a global string (STBL)
$filename-fieldname, so the above example would set stbl("$filename-datafile") to
"c:\files\customers.dat". See the uttempfl.wbb information for a description of
where temporary files are stored.
F-68
OSAS Web B2B User’s Manual