Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Markus 33 posts 58 karma points
    Apr 08, 2011 @ 14:18
    Markus
    0

    "Allowed extensions" option not enforced when creating media item

    I just came across the following inconsistency:

    1. I created a datatype using Digibiz Advanced Media Picker and set Allowed extensions to "jpg,png", single file, and defined a start node
    2. In a document type, I added a property using this datatype.
    3. In the content section, on a node using the doc type with the media picker property, I have the options "Choose" or "Create" - I choose "Create"
    4. In the popup, I choose "Folder" in the media type dropdown, give it some name, choose a node in the list below and hit the button "Create"
    5. In the next screen, I'm given the options to select this media item or to create an other one. I choose "Select"
    6. The popup closes, and my newly created folder is set to my property which should be limited to jpg or png only. :-( I click save & publish
    7. I reload the node, and the folder is still associated with the property.

    I didn't try with other media types, but I don't think this should be possible. I'm not able to effectively limit the choice to images.

    Is there a way to disable the creation of new media items from within DAMP ?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Apr 11, 2011 @ 13:52
    Jeroen Breuer
    0

    Hello Markus,

    You are right about this issue. This is a flaw in the allowed extensions check. It first checks if the umbracoFile property is available and after that if the umbracoFile extension is allowed. If no umbracoFile property is found (like with a Folder) the check is skipped. This should indeed be different. I'll see if I can fix it for the next version.

    Jeroen

  • Markus 33 posts 58 karma points
    Apr 11, 2011 @ 15:50
    Markus
    0

    Ok, great - I'll mark your answer as the solution, and let you do the real solution :-)

Please Sign in or register to post replies

Write your reply to:

Draft