-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #7672 - Image can be added to root of Media when AllowAtRoot is false #7853
Fix #7672 - Image can be added to root of Media when AllowAtRoot is false #7853
Conversation
localizationService.localize('media_uploadNotAllowed').then(function (message) { notificationsService.warning(message); }); | ||
} | ||
else{ | ||
angular.element(".umb-file-dropzone .file-select").trigger("click"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olibos you don't need find the element again. It is already available in fileSelect
variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad! First victim of daylight saving time 😂
Fixed in new version 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjarnef have you seen the new commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olibos yes I did... much better 😁 👍
Hey @olibos Thanks for the work here - lovely to see the community collaborating :) We'll take a look and get in touch soon, Emma |
…-of-Media-when-AllowAtRoot-is-false # Conflicts: # src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.controller.js
It seems that the latest updated breaks it |
undefined makes JSON.parse crashed!
…-of-Media-when-AllowAtRoot-is-false
# Conflicts: # src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.controller.js
This fixes #7672
With @mmrauta's message suggestion
Description
Set the Image Media Types AllowAtRoot property to false in Setting>Media Types>Image.
Create a Doc Type with a Media Picker property on it and create a node with this Doc Type.
Open the Media Picker.
Click upload while viewing the root of the Media folder. This will not open the file upload window.
Create a new media folder.
Go into the folder.
Click to return to the root.
Click upload while viewing the root. This will no longer open the file upload window.