Copied to clipboard

Flag this post as spam?

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


  • Tim Melis 22 posts 43 karma points
    Apr 13, 2011 @ 19:57
    Tim Melis
    0

    Deleting images while not delete them from the server

    Hi,

    When I delete images from the media library, there are not removed from the media folder on webserver.

    In the interface they are gone, but not on the server.

    Is this a permission issue? Or is this bug?

    Kind regards

    Tim

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Apr 13, 2011 @ 22:00
    Jan Skovgaard
    0

    Hi Tim

    What version of Umbraco are you using?

    /Jan

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Apr 13, 2011 @ 22:22
    Dirk De Grave
    1

    Doesn't matter what version, it's just implemented this way... I can think of scenario's where it's good that the actual file is not deleted physically. Imaging what would happen if you still have a link somewhere from within any page in your site? I'm pretty sure there's other reasons...

    Anyway, if you don't like this, either create a work item on Codeplex and vote for it or if you really want to get rid of those files, wire up an event handler that'll delete the file physically when the media item is being deleted.

    More info and good starting point on event handlers can be found in the wiki section:  http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events

     

    Cheers,

    /Dirk

  • Tim Melis 22 posts 43 karma points
    May 18, 2011 @ 12:19
    Tim Melis
    0

     

    Hi,

    First of all, I'm sorry for the late repy.

    Thanks for your feedback. I will try to look at your link asap.

    But would it be nice if, when trying to delete the image, some sort of check is triggerd that will look if the file is in use, allowing the file to be deleted or not ?

    Thanks for your info

    Tim

     

     

     

     

     

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 18, 2011 @ 22:44
    Jan Skovgaard
    0

    Hi Tim

    I think this is the package for you if you want to check what media is being used: http://our.umbraco.org/projects/backoffice-extensions/thefarm-media-link-checker

    However it does not seem like it's fully compatible with v4.5> of Umbraco according to this list of tested packages for v4.5 http://our.umbraco.org/wiki/reference/packaging/umbraco-45-compatibility/umbraco-45-package-testing so if that is the version you're using I'm afraid it's not of much use.

    EDIT: Perhaps if you're using v4.5 or above you can benefit from using this package: http://our.umbraco.org/projects/backoffice-extensions/falm-housekeeping I must admit that I have not been using it myself so I'm a but unsure how it works and exactly what it does. But maybe it's worth trying out. Just a thought...

    Hope this helps.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft