Copies an uploaded file to the specified location. Overwriting a file of the same name is not allowed.

Namespace:  EasyAlgo.EAUpload
Assembly:  EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.0.0

Syntax

C#
public void CopyTo(
	string path
)
Visual Basic (Declaration)
Public Sub CopyTo ( _
	path As String _
)

Parameters

path
Type: System..::.String
The path to copy an uploaded file.

Remarks

This method is equivalent to the CopyTo(String, Boolean) method overload with the overwrite parameter set to false.

The path argument is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the application working directory (see also HttpRequest..::.PhysicalApplicationPath).

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown when the specified path is nullNothingnullptra null reference (Nothing in Visual Basic).
EasyAlgo.EAUpload..::.EAUploadExceptionThrown if the destination file already exists.
System..::.UnauthorizedAccessExceptionThrown if ASP.NET process does not have write permissions to the specified path

See Also