UploadItemConfirmReplace Method

Asks the user to confirm replacing of an already existing item before uploading, i.e. shows a confirmation dialog with existing file info to the user. User can choose to replace (overwrite), skip or keep both (use a new file name).

This method is effective only if item uploading is not started yet, i.e. Status is Pending and if Reject(String) method is not already called.

This method can be called inside Uploading event handler and BeginQueue(UploadQueue, IEnumerableUploadItem) method.

Definition

Namespace: GleamTech.FileUltimate.AspNet.UI
Assembly: GleamTech.FileUltimate (in GleamTech.FileUltimate.dll) Version: 9.1.3
C#
public void ConfirmReplace(
	string existingFileName,
	DateTime existingFileDate,
	long existingFileSize,
	string newFileName
)

Parameters

existingFileName  String
The file name of the existing item, shown to the user.
existingFileDate  DateTime
The file date of the existing item, shown to the user.
existingFileSize  Int64
The file size of the existing item, shown to the user.
newFileName  String
The new file name to use for "keep both" option, shown to the user. This can be a simple file name (e.g. "SomeFile.ext") or can contain relative path information (e.g. "SomeFolder\SomeFile.ext").

See Also