Retrieves name of temporary file from HTML form file upload
Gets the full path and name of the transitory file uploaded as part of a multipart form post.
FileUpload accepts an optional ",#" paramter if more than one file has been uploaded using the same name.
This file is deleted at the end of the SIML script's execution, so if you wish to save the contents make sure you copy the file, or read the contents before the script exits.
Say "Clien's filename:" + Parameter "MyUploadFileParameter"
Say "Server filename:" + FileUpload "MyUploadFileParameter"
#Multiple file uploads under the same name
iCount := ParameterCount "upf"
For i := 1 To iCount
strTempFile := FileUpload "upf", i
iR := CopyFile strTempFile To (RelativePath + "incoming/" + i )
If iR < 0 Then
Say "Error copying file!"
CopyFile; NumberOfParameters; Parameter; ParameterCount; ParameterName;
Minimum version: 1.0