Copied to clipboard

Flag this post as spam?

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


  • Nathan Bingham 5 posts 35 karma points
    Apr 07, 2014 @ 21:35
    Nathan Bingham
    0

    Umbraco Node Delete Removes Associated Media

    We're running Umbraco 6.1.6 and having issues with losing Media nodes that are associated with content nodes on our site.

    The media is created as part of a particular Document Types and when a document is deleted, the associated media goes with it even though it might be used in other parts of the site. It seems like this might be the default behaviour for Umbraco? Is this correct and is there a way to disable that behaviour? I can understand wanting to delete all parts of a particular node of content, but when it comes to Media I'm hoping it's possible to treat it differently.

    We see this behaviour most when someone duplicates a node and then later decides to delete that duplicate, which removes the associated media.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 07, 2014 @ 22:08
    Jan Skovgaard
    0

    Hi Nathan

    Not sure I quite get the scenario...the media you're talking about is that uploaded and accessible through the media section in Umbraco or is it uploaded directly on the document type and then stored as files in the /media/ folder on disk but not accessible in the media section?

    /Jan

  • Nathan Bingham 5 posts 35 karma points
    Apr 07, 2014 @ 22:22
    Nathan Bingham
    0

    Jan,

    The media is uploaded during creation of a document, but shows in the Media section as well. When a document is deleted (and removed from a Recycle Bin) it deletes the media along with it even if that media is referenced elsewhere. It still leaves the reference to the media in the Media seciton. We are using an extension that publishes to Azure, but digging through the code it looks like Umbraco is triggering the delete and the extension is just doing as told.

    http://our.umbraco.org/projects/backoffice-extensions/azure-blob-storage-provider

    Thanks,
    Nathan

Please Sign in or register to post replies

Write your reply to:

Draft