# Option to disable the drag&drop image upload and upload from URL

**URL:** <https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699>\
**Category:** ContentBlocks\
**Created:** [March 21, 2017, 6:21pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699 "2017-03-21T18:21:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![webmasterunifr](https://forum.modmore.com/user_avatar/forum.modmore.com/webmasterunifr/32/120_2.png) [@webmasterunifr](https://forum.modmore.com/u/webmasterunifr)\
**Post date:** [March 21, 2017, 6:21pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/1 "2017-03-21T18:21:23Z")

</div>

Hi,

there is a way/option to disable the:

- drag and drop upload of the image
- the “import” of an image from the URL  
?

In fact, our user makes excessive use of this option.  
The consequence is that the users are unable to manage all files on the server. For this reason, we wish to disable this 2 functions if possible.

Have somebody already tried that? on the documentation, we haven’t found anything.

Thx to the community

---

<div class="post-metadata">

**Author:** ![jonleverrier](https://forum.modmore.com/user_avatar/forum.modmore.com/jonleverrier/32/146_2.png) [@jonleverrier](https://forum.modmore.com/u/jonleverrier)\
**Post date:** [March 24, 2017, 10:57am UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/2 "2017-03-24T10:57:32Z")

</div>

I don’t think this is possible at the moment ☹

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [March 24, 2017, 11:07am UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/3 "2017-03-24T11:07:11Z")

</div>

I’d be interested in hearing more about “making excessive use of this option” - do you literally mean users upload too much images? 😛

Indeed there’s no way to do that currently, unless you’d make your own input type. I’ve logged an issue in our tracker (#459) to add a way to enable/disable specific ways of choosing/uploading images for future consideration.

---

<div class="post-metadata">

**Author:** ![webmasterunifr](https://forum.modmore.com/user_avatar/forum.modmore.com/webmasterunifr/32/120_2.png) [@webmasterunifr](https://forum.modmore.com/u/webmasterunifr)\
**Post date:** [March 27, 2017, 7:20am UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/4 "2017-03-27T07:20:46Z")

</div>

Hehe nice one @mhamstra,

Yes, we have a lot of people that literally upload images as “compulsory reflex” and we know that in one year this image/files should be updated with the new one, sometimes from another user.

So to help this teams, we wish to force them to use the file manager and structure his upload logically (by category, theme, events,…) so that we can:

- reduce the garbage of files on the server
- implements some shared media source between a couple of websites
- know if a file can be safely deleted

Are you surprise from this reflection ? do you have some suggestions fo us?

---

<div class="post-metadata">

**Author:** ![jonleverrier](https://forum.modmore.com/user_avatar/forum.modmore.com/jonleverrier/32/146_2.png) [@jonleverrier](https://forum.modmore.com/u/jonleverrier)\
**Post date:** [November 9, 2017, 4:18pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/5 "2017-11-09T16:18:07Z")

</div>

How you getting on with this Sam?

I have put together a plugin that, for certain MODX User Groups:

- Turns off certain CB buttons (such as delete field, upload from url, add new layout or anything you want providing it has a unique css class name)
- Turns off the drag and drop functionality

Would you be interested in testing it?

---

<div class="post-metadata">

**Author:** ![webmasterunifr](https://forum.modmore.com/user_avatar/forum.modmore.com/webmasterunifr/32/120_2.png) [@webmasterunifr](https://forum.modmore.com/u/webmasterunifr)\
**Post date:** [November 20, 2017, 5:27pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/6 "2017-11-20T17:27:49Z")

</div>

hi @jonleverrier

of cours I’m interested in testing if possible

if it’s a public plugin you can share a repo/gist? otherwise you can PM me 😉

---

<div class="post-metadata">

**Author:** ![jonleverrier](https://forum.modmore.com/user_avatar/forum.modmore.com/jonleverrier/32/146_2.png) [@jonleverrier](https://forum.modmore.com/u/jonleverrier)\
**Post date:** [November 20, 2017, 6:14pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/7 "2017-11-20T18:14:17Z")

</div>

Hi @webmasterunifr - have a look at:

> <https://gist.github.com/jonleverrier/5964596e3bbc8f15a4f305185762eae6>

---

<div class="post-metadata">

**Author:** ![Rdg](https://forum.modmore.com/user_avatar/forum.modmore.com/rdg/32/345_2.png) [@Rdg](https://forum.modmore.com/u/Rdg)\
**Post date:** [November 29, 2017, 1:36pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/8 "2017-11-29T13:36:32Z")

</div>

Hi i’d rather see an option that wil let me define a variable upload path. similar to Redactor.  
so i can set uploads to [[+year]]/[[+month]]/[[+user]]/[[+template variable]]/  
RDG

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [November 29, 2017, 1:49pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/9 "2017-11-29T13:49:25Z")

</div>

You can already do that @Rdg. Works the same as in Redactor, same options. Either set it on the field or in the relative url settings.

---

<div class="post-metadata">

**Author:** ![culd](https://forum.modmore.com/user_avatar/forum.modmore.com/culd/32/336_2.png) [@culd](https://forum.modmore.com/u/culd)\
**Post date:** [December 14, 2021, 3:17pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/10 "2021-12-14T15:17:26Z")

</div>

+1 on choosing which upload/selection options are available. Even with structured upload paths based on resource id etc the file structure becomes a mess on ‘bigger’ websites 🙂

---

<div class="post-metadata">

**Author:** ![ebc](https://forum.modmore.com/letter_avatar_proxy/v4/letter/e/73ab20/32.png) [@ebc](https://forum.modmore.com/u/ebc)\
**Post date:** [April 21, 2026, 7:30pm UTC](https://forum.modmore.com/t/option-to-disable-the-drag-drop-image-upload-and-upload-from-url/699/11 "2026-04-21T19:30:03Z")

</div>

Was the option ever created to hide buttons or hide the drag and drop uploading?

I’d like to disable all but the Choose button just on certain image fields. Not site wide. In fact I’d also like the same kind of thing in Redactor.

Blindly uploading seems like the worst design choice imaginable for managers. I could see a blind upload being ok for front end users that don’t know each other, but for a coordinated team of people, knowing where the files are going is ideal.

There should be a way to force the user to think through where they place their files. They might still drop them into a single bucket, but at least it would be a conscious choice. Alternatively give an option where the upload button or drag and drop brings up a directory list.
