| Object: | SoftArtisans.FileUp |
| Syntax: | SaveAs ([in] Filename) |
| Description: | This method saves an uploaded file to the web server's hard
disk. If no path is specified (e.g., upl.SaveAs "FileX.ext"), the value of the Path property is used. For more efficient processing, it is recommended that you always use the Path property before saving any files. When a path is specified as part of filename given to the SaveAs ("C:\UploadDir\FileX.ext"), the Path argument must contain the complete path. You cannot use relative paths. If there is more than one file being uploaded in a single page, only the first one is 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". |
<%
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.")
... %>
| Previous Page | Next Page |