ConvertedFile.SaveAs Method ActiveX/Java Uploader ASP.NET

Saves this converted file to the specified path.

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

Syntax

C#
public void SaveAs(
	string fileName
)

Parameters

fileName

Type: System..String

The path to save 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 ActiveX/Java Uploader 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