|
|
Restrict .DOC type / "Rashid Chowdhury" <rashid.chowdhury@HUMANITAS.COM>
Restrict .DOC type
"Rashid Chowdhury" <rashid.chowdhury(at)HUMANITAS.COM> |
2005-10-18 07:52:23 |
[
FULL ]
|
Hi everyone,
Does anyone know of a quick and efficient way to block users trying to upload
MS Word documents on Plone? I would like users to be able to upload all sorts
of MS Office documents except .DOC or Word doc. This is so, as I would like to
encourage the users to utilize Kupu or Epoz and stick with Plone vs. opening
document content in MS Word. The "File" content type just about accepts any
and all binary file types. I want it to fail on trying to add a .DOC type of
document from the file system.
Any thoughts or hints are highly appreciated!
Thanks!
Rashid Chowdhury
|
Re: [ZPUGDC] Restrict .DOC type / Alex Clark <aclark@aclark.net>
Re: [ZPUGDC] Restrict .DOC type
Alex Clark <aclark(at)aclark.net> |
2005-10-18 08:26:52 |
[
FULL ]
|
I don't know about quick and efficient but you could probably create a custom
form controller
page template (.cpt) with a custom validator (.vpy) written in python to check
for the
".doc" file extension. Look for files ending in .cpt and .vpy in your Plone
Products
directory for examples.
HTH,
Alex
On Tue, Oct 18, 2005 at 08:58:06AM -0400, Rashid Chowdhury wrote:[...]
[...]
|
|