# Drag & Drop

To use the drag and drop functionality the input element has to be configured the following way:

```python
input_data = {
  'fields': [
    {
      'title': 'Personal information',
      'fields': [
        {
          'mapping': 'Upload',
          'fieldName': 'Drag & Drop',
          'inputType': 'file',
          'dragAndDrop': True,
        }
      ]
    }
  ]
}

s.plt.input_form(
    order=0, options=input_data
)
```

<figure><img src="https://3782181538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUlHTfmIZY46Z1EDfyGMz%2Fuploads%2FyNAuIxYnK8QFUufpkcFH%2FDrag%26Drop.png?alt=media&#x26;token=056b6f4c-650c-4c12-aa6c-e25b425dbd2c" alt=""><figcaption></figcaption></figure>
