Tuesday 05 December 2006 1:33:29 am
Hi all, I'm setting up a forum using ez's built in forums where users "must" be allowed to attach images to forum topics and replies (the site revolves around solving problems by looking at them "visually" so it is an absolute necessity).
I'm using Daniel Beyer's method as described at:
http://ez.no/community/forum/developer/multiplefileupload_extension_discussion/re_multiplefileupload_extension_discussion__5#msg73556 To allow multiple image attachments and for the best part this works perfectly until a user decides to delete an image. My problem is that using this method whereby I'm not placing images in the content tree any image a user attaches is stored in var/storage/images-versioned. When I delete images from a topic or post they are removed from said topic or post, however the images still remain in the images-versioned directory. This is a major problem when it comes to disc usage as the client would like users to be able to post very large images (in excess of 3meg). So any redundant images are simply going to chew up valuable disc space very quickly and managing removed images manually is highly impractical due to the fact any user can create or remove images (How will I know which images aren't in use?). According to this bug report: http://issues.ez.no/2874 a similar issue was fixed but in what version I don't know? I'm currently running ez 3.7.6 Is there anything I can do to remove images from the images-versioned directory when they are removed from an object, or for that matter should they be stored elsewhere? From my understanding the images-versioned directory is used for temp images, should my images infact be stored in another directory once their parent object is published and if so how can I set this up? This is an extremely high priority for me as I need to have my otherwise ready forums live within the next few days (or before the end of the month at the absolute latest). Any help greatly appreciated. Cheers!
Pardon me while I burst into flames...
|