Table of Contents

UploadItem.ConfirmReplace Method

Definition

Namespace
GleamTech.FileUltimate.AspNet.UI
Assembly
GleamTech.FileUltimate.dll

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, IEnumerable<UploadItem>) method.

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 long

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").