Disable media picker upload button or change default media type
Hi all,
I have a query regarding the media picker / multiple media picker in Umbraco. Is there any way in which I can disable the Upload button that appears when a user goes to select a piece of media?
The reason I ask this is I have a folder that is supposed to contain a custom media type however the default behaviour of the media picker allows normal images to be added to this folder via the upload button which is incredibly annoying and should not be the case as I have already specified in my media types that this folder can only have children of type 'slide'.
This is the button I am talking about:
I did think about doing it in CSS however I wasn't sure whether this would affect other upload buttons across the back office.
Hi Jason,
I don't believe this functionality (specifically the disable Upload button) is in the core.
It feels like an option which should be added in at data type configuration level or if a user has access to the media or not.
I suggest raising a feature ticket on the Umbraco issue tracker for future releases. At this point though the only way to go would be a custom data type & dialog.
I feel like the media management is somewhat overlooked.
As you mentioned, "I have a folder that is supposed to contain a custom media type however the default behaviour of the media picker allows normal images to be added to this folder via the upload button".
The above statement is also true when using the upload button or drag n drop function inside of the folder in Media section. The folder is set to only accept a custom image media type but this is of course ignored...
How are these media settings intended to be used? My experience is that much of these settings regarding media management gets useless later down the line.
I'm not aware of anything configurable. It is far from ideal but you could create a new property editor based upon the existing mediapicker that has an additional configurable option to 'hide upload button'.
Essentially, you are mostly copying the existing property editor into a newly created one and adding one new configurable option. Make sure to name that "MySite Media Picker" or such and use it where necessary.
Disable media picker upload button or change default media type
Hi all,
I have a query regarding the media picker / multiple media picker in Umbraco. Is there any way in which I can disable the Upload button that appears when a user goes to select a piece of media?
The reason I ask this is I have a folder that is supposed to contain a custom media type however the default behaviour of the media picker allows normal images to be added to this folder via the upload button which is incredibly annoying and should not be the case as I have already specified in my media types that this folder can only have children of type 'slide'.
This is the button I am talking about:
I did think about doing it in CSS however I wasn't sure whether this would affect other upload buttons across the back office.
Any help would be greatly appreciated.
Hi Jason,
I don't believe this functionality (specifically the disable Upload button) is in the core.
It feels like an option which should be added in at data type configuration level or if a user has access to the media or not.
I suggest raising a feature ticket on the Umbraco issue tracker for future releases. At this point though the only way to go would be a custom data type & dialog.
Thanks,
Jamie
Jason,
Did you ever solve this? I'm trying to do the same.
Same here, did you ever get this to work?
I feel like the media management is somewhat overlooked.
As you mentioned, "I have a folder that is supposed to contain a custom media type however the default behaviour of the media picker allows normal images to be added to this folder via the upload button".
The above statement is also true when using the upload button or drag n drop function inside of the folder in Media section. The folder is set to only accept a custom image media type but this is of course ignored...
How are these media settings intended to be used? My experience is that much of these settings regarding media management gets useless later down the line.
Cheers
Same here ... I need to disable upload button so users only can pick images from the Media folder. Is it possible ... now?
I'm not aware of anything configurable. It is far from ideal but you could create a new property editor based upon the existing mediapicker that has an additional configurable option to 'hide upload button'.
The existing mediapicker property editor can be found at: https://github.com/umbraco/Umbraco-CMS/tree/0dfbb95033c68c6059664eaab0d9ac8f495f877f/src/Umbraco.Web.UI.Client/src/views/propertyeditors/mediapicker
A tutorial regarding property editors https://our.umbraco.org/documentation/Tutorials/creating-a-property-editor/
Essentially, you are mostly copying the existing property editor into a newly created one and adding one new configurable option. Make sure to name that "MySite Media Picker" or such and use it where necessary.
Thanks
is working on a reply...