[Zope] [HELP] How can i limit the size of Upload ?

Meilicke, Scott scott.meilicke@intp.com
Tue, 19 Mar 2002 11:17:30 -0800


Could you use some browser javascript to check the file size, and deny the
upload before it begins?

-----Original Message-----
From: Max M [mailto:maxm@mxm.dk]
Sent: Tuesday, March 19, 2002 10:52 AM
To: Fr?d?ric Lemaitre
Cc: zope@zope.org
Subject: Re: [Zope] [HELP] How can i limit the size of Upload ?


Fr?d?ric Lemaitre wrote:

>I would like to know how can i limit the upload size of certains files in
>Zope.
>
You cannot!

You can upload it, and then see how big the file is. Then you can use 
some logic to prevent the file from being saved.

This is due to the standards that browsers and webservers use to upload 
files.

regards Max M


_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
The information contained in this email message may be privileged and is
confidential information intended only for the use of the recipient or any
employee or agent responsible for delivering it to the intended recipient.
Any unauthorized use, distribution or copying of this information is
strictly prohibited and may be unlawful.  If you have received this
communication in error, please notify the sender immediately and destroy the
original message and all attachments from your electronic files.