ASPPowUpload 1.0 control documentation

Moves an uploaded file to a new location, providing the option to specify file name. Overwriting a file of the same name is allowed.

public void SaveAs(
   string filename,
   bool overwrite
);

Parameters

filename
The name of the destination file. This cannot be a directory.
overwrite
true if the destination file can be overwritten; otherwise, false.

Remarks

If method successed, TempFileName property will point the new file. This file will not be deleted as object disappears

Use an absolute path at the filename argument. To get the physical path that corresponds to the Web application virtual folder use Server.Mappath(“.”).

This method moves the file uploaded from the temporary folder to the specified location. So you shouldn't run this method twice. Use the CopyTo() method if you wish to make multiple copies of the same file.