[HELP] How can i forbid upload of all .HQX files ?
Hello, Thanks for all your reponses about my problem with big .HQX files. My only solution, to avoid my Zope's server of crash, is to forbid upload of all .HQX files. Is there a way to do this (from HTTP upload AND from FTP upload) ? (P.S : I use CMFExternalFile) Thanks in advance. Fred. __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/
"Frédéric" LEMAITRE writes:
Thanks for all your reponses about my problem with big .HQX files. My only solution, to avoid my Zope's server of crash, is to forbid upload of all .HQX files.
Is there a way to do this (from HTTP upload AND from FTP upload) ? (P.S : I use CMFExternalFile) HTML 4 gives the server some control on what content types are acceptable. Not sure, however, what browsers will respect it...
Dieter
Frédéric LEMAITRE wrote:
Hello,
Thanks for all your reponses about my problem with big .HQX files. My only solution, to avoid my Zope's server of crash, is to forbid upload of all .HQX files.
One solution would be to subclass the type of folder you use (Python Product) and change the upload function so that it only allows uploads of certain filenames. Or you can check the content length. I hope, but don't know, if you get the content length before the bytes are transmitted. Would be better if you get it before, otherwise you only disallow the storage but not the upload. thomas
Frédéric LEMAITRE wrote:
Hello,
Thanks for all your reponses about my problem with big .HQX files. My only solution, to avoid my Zope's server of crash, is to forbid upload of all .HQX files.
By chance I discovered that the input tag has the attributes maxlength and accept. Maybe this helps. thomas
Hello Thomas, I'v tried but it doesn't work : the MAXLENGTH attribute doesn't limit the size of the upload, but of the filename, so it doesn't fix my problem. Moreover, i would like a solution (if there's one) which won't be an HTML one to use with the FTP access. Thanks for your help. PS. Excuse my english Fr�d. --- Thomas Guettler <zopestoller@thomas-guettler.de> > By chance I discovered that the input tag has the
attributes maxlength and accept. Maybe this helps.
thomas
__________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards� http://movies.yahoo.com/
participants (3)
-
Dieter Maurer -
Fr�d�ric LEMAITRE -
Thomas Guettler