This documentation is for the old version. Go to the latest Upload Suite docs

ConvertedFile.MoveTo Method

Moves this converted file to the specified path.

Namespace: Aurigma.ImageUploaderFlash
Assembly: Aurigma.ImageUploaderFlash (in Aurigma.ImageUploaderFlash.dll)

Syntax

Visual Basic
Public Sub MoveTo ( _
	fileName As String _
)
C#
public void MoveTo(
	string fileName
)

Parameters

fileName

Type: System.String

The path to move this converted file to.

Remarks

The main difference between SaveAs(String) and MoveTo(String) methods is in the following. By the moment when the FileUploaded or AllFilesUploaded event is fired, ASP.NET server-side part of Image Uploader Flash has already completed parsing of HTTP POST request(s) and saved files to a temporary folder which is configured via the TempDirectory property. When you trigger the MoveTo(String) method, it moves the file from this temporary folder to the specified one. However, when you call the SaveAs(String) method, it copies the file from a temporary location to the specified folder. So, the MoveTo(String) method works faster when you transfer the file from a temporary location (which is in the /App_Data folder, by default) to a location on the same disk.

See Also

Reference