[pmwiki-users] Don't overwrite attachments - but inform me

Mildiner, Melvyn Melvyn.Mildiner at verint.com
Thu Jul 19 03:55:15 CDT 2007


The documentation regarding Uploads
(http://www.pmwiki.org/wiki/PmWiki/Uploads) states "Replace a file by
simply uploading a new version of the file with the same name."

How can I avoid overwriting existing attachments? Ideally, I'd like an
error along the lines of "An attachment called "screenshot1.jpeg"
already exists. Please rename your attachment with a unique filename."

I'm aware of $EnableUploadVersions=1 but this is not the functionality I
require. I want existing attachments to be left alone unless they are
being deliberately overwritten (a rarity for us).

I have asked previously about per page attachments and I suppose this is
an extension of that question.


Regards,
Melvyn

__________________________________________________________________________________________
This electronic message contains information from Verint Systems, which may be privileged and confidential. 
The information is intended to be for the use of the individual(s)or entity named above. 
If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. 
If you have received this electronic message in error, please notify us by replying to this email (1).




More information about the pmwiki-users mailing list