SaveAs Method


 Object: SoftArtisans.SAFile
 Syntax: SaveAs ([in] Filename)
 Description: This method saves an uploaded file to the web server's hard disk.

See also the SaveAs method for the SAFileUp object.
 Examples: The following caches the upload on the Web server at C:\Temp, and saves the upload on the Web server at C:\Uploads.
<%
Set upl = Server.CreateObject("SoftArtisans.FileUp")
...
upl.Path = "C:\Temp"
...
upl.form("file1").SaveAs "C:\Uploads" & upl.form("file1").ShortFileName
... %>
The following caches the upload on the Web server and saves it to a network shared drive.
<%
Set upl = Server.CreateObject("SoftArtisans.FileUp")
...
upl.Path = "C:\Temp"
...
upl.form("file1").SaveAs "\\FileServer\Uploads" & upl.form("file1").ShortFileName
... %>

 


Copyright © 2004 SoftArtisans, Inc. All rights reserved.