Mediachase FileUploader.NET 1.9 Framework Help

McHttpPostedFile.MoveTo Method 

Moves a specified file to a new location from the temporary folder.

[Visual Basic]
Public Sub MoveTo( _
   ByVal destFileName As String _
)
[C#]
public void MoveTo(
   string destFileName
);

Parameters

destFileName
The name of the saved file.

Remarks

The method moves an incoming file from the temporary folder to a new location. If you use a HDD file storage, MoveTo method will increase performance and decrease a disk space requirement.

To invoke MoveTo method you must turn on an incoming file optimization.

Note: You can execute MoveTo method only once.

Exceptions

Exception TypeCondition
NotSupportedExceptionIf incoming file optimization turn off.

See Also

McHttpPostedFile Class | Mediachase.FileUploader.Web Namespace