Copied to clipboard

Flag this post as spam?

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


  • TheArtist 22 posts 71 karma points
    Nov 23, 2011 @ 21:27
    TheArtist
    0

    Delete mediafile permently

    Hello forum

    I am working on a site were users can read files from a mediafile folder. I am using a Razor mediafile reader to do this and it is working fine. My problem is when a admin is deleting a file it is removed from the mediafilefolder but its still shown in my reader.... After 30 min or so the file are gone.

  • TheArtist 22 posts 71 karma points
    Nov 23, 2011 @ 21:36
    TheArtist
    0

    Hope somebody out there have a solution to how to delete the file permently or read a deleted property or something.

    Best regards Jakob

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Nov 23, 2011 @ 22:36
    Jeroen Breuer
    0

    If you delete a media item it's first moved to the bin folder. Only after emptying the bin the media item will be deleted for real.

    Jeroen

  • TheArtist 22 posts 71 karma points
    Nov 23, 2011 @ 22:43
    TheArtist
    0

    Hello Jeroen

    Thank you for your reply.

    I just found this in the UmbracoSettings.config

    <!-- Cache cycle of Media and Member data fetched from the umbraco.library methods -->

    <!-- In seconds. 0 will disable cache -->

    <UmbracoLibraryCacheDuration>0</UmbracoLibraryCacheDuration

    >

     

    Disable the cache solved my problem.

    Jakob

Please Sign in or register to post replies

Write your reply to:

Draft