Class: SoftArtisans.SAFile

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.

Example:

<%
	on error resume next
	'---
	'--- Save the file now
	'---
	upl.Form("FILE1").SaveAs filename
	if Err <> 0 Then
         Response.Write("An error occurred when saving the file on the server.")
... %>