Suggestion: Add option to disable changing file on imagecropper/upload datatypes #11031
SofusMunch
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to see an option on the imagecropper and upload data types to disable replacing the file. Especially since the new mediapicker links directly to a chosen media item. Just a true/false for whether the “remove file button” is visible in the editor view.
A user while being able to use a specific mediaitem, doesn’t necessarily have the right to change it.
There are plenty of cases where being able to create a protected media type would be useful.
In my case I’ve integrated an external image library, which creates, updates and deletes a specific type of mediaitems. Those items may not be changed by editors, but they are allowed to create and edit their own mediaitems. On that note I would like to be able to lock the name of a protected media item too, but that’s more of an edge case.
By the way. The need to be able to remove a media item, including all the cached files, when it’s deleted in the external media library meant I had to solve #10542 by replacing the Imageprocessor and Image Sharp cacheproviders. Instead of crops being stored in a,b,c,e... folders, they are stored in a folder with the mediaitemId, enabling me to delete them all in one go.
Beta Was this translation helpful? Give feedback.
All reactions