# Prevent folder dropping on dashboard

**URL:** https://community.transloadit.com/t/prevent-folder-dropping-on-dashboard/17262
**Category:** Uppy
**Created:** [September 13, 2024, 9:50am UTC](https://community.transloadit.com/t/prevent-folder-dropping-on-dashboard/17262 "2024-09-13T09:50:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Floppy](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/floppy/32/1224_2.png) [@Floppy](https://community.transloadit.com/u/Floppy)
#### Post date: [September 13, 2024, 9:50am UTC](https://community.transloadit.com/t/prevent-folder-dropping-on-dashboard/17262/1 "2024-09-13T09:50:44Z")

</div>

I want to avoid users drag-dropping an entire folder into the dashboard for various reasons. I know the option is there in the file picker to disallow folders, that’s fine, but it doesn’t seem to affect drag/drop? Is this possible?

---

<div class="post-metadata">

### Author: ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)
#### Post date: [September 16, 2024, 6:58am UTC](https://community.transloadit.com/t/prevent-folder-dropping-on-dashboard/17262/2 "2024-09-16T06:58:18Z")

</div>

Hi, setting [`maxNumberOfFiles`](https://uppy.io/docs/uppy/#restrictions) does not work for you?

---

<div class="post-metadata">

### Author: ![Floppy](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/floppy/32/1224_2.png) [@Floppy](https://community.transloadit.com/u/Floppy)
#### Post date: [September 16, 2024, 9:32am UTC](https://community.transloadit.com/t/prevent-folder-dropping-on-dashboard/17262/3 "2024-09-16T09:32:29Z")

</div>

It’s not so much the number of files that’s the problem, I treat compressed and uncompressed files differently. I might have a different way around it though, which involves changing my assumptions a bit…

---

<div class="post-metadata">

### Author: ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)
#### Post date: [September 19, 2024, 7:03am UTC](https://community.transloadit.com/t/prevent-folder-dropping-on-dashboard/17262/4 "2024-09-19T07:03:05Z")

</div>

You can’t disable folders for now unfortunately

---

<div class="post-metadata">

### Author: ![Floppy](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/floppy/32/1224_2.png) [@Floppy](https://community.transloadit.com/u/Floppy)
#### Post date: [September 23, 2024, 11:13am UTC](https://community.transloadit.com/t/prevent-folder-dropping-on-dashboard/17262/5 "2024-09-23T11:13:49Z")

</div>

I might have a look at adding it as an option; presumably [uppy/packages/@uppy/utils/src/getDroppedFiles/utils/webkitGetAsEntryApi/index.ts at 23bf2298d8f888bde02fdd19b4b62dc99b2a382d · transloadit/uppy · GitHub](https://github.com/transloadit/uppy/blob/23bf2298d8f888bde02fdd19b4b62dc99b2a382d/packages/%40uppy/utils/src/getDroppedFiles/utils/webkitGetAsEntryApi/index.ts#L70) would be the right place to put the check; I’ll see if I can make it work like [Dashboard | Uppy](https://uppy.io/docs/dashboard/#filemanagerselectiontype).
