# FileDroppedEventArgs Object

> The event argument object for the fileDropped event.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 23.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > FileDroppedEventArgs Object
- **444 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedeventargs/llms-full.txt

---

### Description

The event argument object for the [fileDropped event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/addeventlistener-method/llms-full.txt).

### Syntax

```javascript
{
   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.

```javascript
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);
}
```

---

## In This Section

- [Javascript: FileDroppedEventArgs.cancel Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedeventargs/cancel-property/llms-full.txt): Set this property to true to cancel the event.
- [Javascript: FileDroppedEventArgs.fileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedeventargs/filename-property/llms-full.txt): The file name of the dropped file.
- [Javascript: FileDroppedEventArgs.fileSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedeventargs/filesize-property/llms-full.txt): The size of the file in bytes.
- [Javascript: FileDroppedEventArgs.fileType Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedeventargs/filetype-property/llms-full.txt): The MIME type of the file.

---

## Nearby

- **Previous:** [FileDroppedCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedcallback/llms-full.txt)
- **Next:** [Javascript: FileDroppedEventArgs.cancel Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedeventargs/cancel-property/llms-full.txt)
