ASPPowUpload 1.0 control documentation

Copies an uploaded file to a new file. Overwriting a file of the same name is allowed.

public void CopyTo(
   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

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 makes a new copy of the uploaded file. If you wish to make just a single copy of the file use the SaveAs method. It moves the file therefore it works faster.