Class: SoftArtisans.FileUp
Method: SaveAs ([in] Filename)
Description: This method saves an uploaded file to the web server's hard disk.
If no path is specified ("file.ext"), the value of the Path property is used. For more efficient processing, it is recommended that you use the Path property before saving any files.
When a path is specified as part of filename given to SaveAs ("c:\uploads\file.ext"), the path must contain the complete path. Relative paths cannot be used.
If there is more than one file being uploaded in a single page, only the first one will be saved.
To save multiple files in a single upload, there is an equivalent method for each file object, i.e. upl.Form("FILE1").SaveAs "filename".
Example:
<%
on error resume next
'---
'--- Save the file now
'---
upl.SaveAs filename
if Err <> 0 Then
Response.Write("An error occurred when saving the file on the server.")
... %>