# FileDroppedCallback Function

> Callback function for the fileDropped event.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Function
- **Introduced:** 23.0
- **Path:** DS Server > Reference > JavaScript API > FileDroppedCallback Function
- **163 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/filedroppedcallback/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/filedroppedcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/filedroppedcallback/llms-full.txt

---

### Description

Callback function for the [fileDropped event](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/addeventlistener-method/llms-full.txt).

### Syntax

```javascript
function(<FileDroppedEventArgs> args)
```

### Examples

The following example demonstrates `FileDroppedCallback` in a practical document-editing workflow. Callback function for the fileDropped event.

```javascript
function fileDroppedCallback(args) {
    console.log("args:", args);
}
```

---

## Nearby

- **Previous:** [EventCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/eventcallback/llms-full.txt)
- **Next:** [FileDroppedEventArgs Object](https://docs.textcontrol.com/ds-server/reference/javascript/filedroppedeventargs/llms-full.txt)
