The users do it because they can.
However, image auto-resize etc. breaks down.
This make me a sad boy.
How to limit image uploads to GIF, PNG and JPEG sitewide?
-
For Archetypes
-
For Dexterity
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
i ran into similar problems these days and worked around them like that:
acceptattribute to the file inputfield.swallowResizeExceptions = Trueso users at least don’t get a site-error when uploading an unsopported image typeThe field definition looks like this:
note that
accept="image/jpeg,image/gif"was ignored by firefox11although it sould be supported according to http://www.w3schools.com/tags/att_input_accept.asp
mywidgets/myimage is a customized version of archetypes/skins/widgets/image.pt that uses a customized version of archetypes/skins/widgets/file.pt
and mywidgets/myfile.pt simply defines this macro: