|
PreventUploadOverwrites<< | Cookbook-V1 | >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalPrevent users from being able to overwrite existing attachments/uploads. SolutionAdd the following code to local.php: $EnableUploadOverwrite = 0; DiscussionBy default, the PmWiki.Uploads feature allows authorized users to overwrite existing attachments. For some applications this is inappropriate, especially since the upload/attachment feature doesn't have an easy mechanism for recovering previous versions of an attachment. Setting $EnableUploadOverwrite to zero tells the upload.php module to not allow existing files to be overwritten. See Also
Contributors
pmwiki-2.2.0-beta68 -- Last modified by {{efc}}
|