TX Text Control .NET Server

FileDroppedEventArgs Object

Object|Introduced in 23.0

Description

The event argument object for the fileDropped event.

Syntax

{
   fileName: <string>,
   fileType: <string>,
   fileSize: <number>,
   cancel: <boolean>
}

Examples

The following example demonstrates FileDroppedEventArgs in a practical document-editing workflow. The event argument object for the fileDropped event.

function handleFileDropped(args) {
    console.log("file name:", args.fileName);
    console.log("file type:", args.fileType);
    console.log("file size:", args.fileSize);
    console.log("cancel:", args.cancel);
}

Members

Properties

PropertyDescription
cancelSet this property to true to cancel the event.
fileNameThe file name of the dropped file.
fileSizeThe size of the file in bytes.
fileTypeThe MIME type of the file.