|
Cookbook /
AttachDeleteSummary: An enhancement to the current upload feature to allow the deletion of uploaded files.
Version: 0.05 24 Nov 2006
Prerequisites: Requires PmWiki version: 2.0; last tested on PmWiki version: 2.1 beta 12;
Status:
Maintainer:
Questions answered by this recipeAn enhancement to the current upload feature to allow the deletion of uploaded files. This cookbook entry creates a new markup If you want to replace the standard list PmWiki uses for the upload action you have to edit the page This is my first PmWiki extension and I am still learning how to properly write those enhancements. Feedback is highly encouraged so I can learn. I don't want to forget to mention that the base code for this script was taken from the standard upload.php script. Maybe down the road this could be integrated with the core upload.php script. NotesCopy the attachdel.php to your cookbook folder. Add the line Releases
CommentsHi Dan, it's a nice cookbook, thanks! In the wiki philosophy there is a "mantra" that you can not delete anything, this is of course infeasible by deleting files, ;-) but could you make it a little bit less dangerous. It would be fine, if there were at least a promt "would you really delete this files" next pressing the button "delete checked files". cg 2006-03-29 After talking to Dan I added a patch which prevent upload input fields from disappearing ater deleting an attachment and I increased the version number to 0.05 :-) -- Jann November 24, 2006, at 09:11 AM Is it possible to chnage the delete to move the file to a spezial folder with an timestamp, so may it can be restored....?
Verion 0.07 in my installation lead to downloads not opening on the client side as desired. Instead, the various applications seem to consider them binary files not conforming with the expected file type's structure. I've been forced to disable the recipe now ... but of course I'd like to keep it! Your suggestions for a fix would be appreciated ... Thanks in advance! --Henning February 27, 2009, at 09:36 AM See Also
ContributorsDan Weber |