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

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

I don’t think this is possible at the moment :frowning:

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

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.

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?

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?

1 Like

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 :wink:

Hi @webmasterunifr - have a look at:

2 Likes

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

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.

+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 :slight_smile:

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.