[dokuwiki] New event proposition
- From: Michal Kolodziejski <M.Kolodziejski@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 26 Sep 2008 11:14:47 +0200
Hello everyone.
I'm currently working on a quite big project based on DokuWiki farm. It
assumes few hundreds of wikis on the farm and that's why I have to take
into consideration introducing some restrictions to users. Since
pagefiles consume relatively not much disk-space, media files, on the
contrary, may be a serious problem. That's why I decided to implement
quota-like mechanism on the farm, as a separate plugin.
And here's where I faced a small problem. There's no event being
triggered on file deletion which would make the plugin aware of such an
action. I believe that adding such an event would be very useful as it
would capacitate developers to have a total control on media files flow.
What I suggest is to add a few more lines to media_delete() funtion in
inc/media.php file which would create and trigger new event signaling a
file removal with some information about it (filename, path, size etc.).
It also sounds quite proper to make this action preventable.
What do you think about such an improvement?
Best regards,
Michał Kołodziejski
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: New event proposition
- From: Andreas Gohr
Other related posts:
- [dokuwiki] Re: New event proposition
- From: Andreas Gohr