[Zope] FileUpload get_size() method?

Tino Wildenhain tino at wildenhain.de
Tue Oct 25 17:06:59 EDT 2005


Am Dienstag, den 25.10.2005, 16:42 -0400 schrieb Jonathan Cyr:
> I think I get it, except...
> 
> What's the meaning of 1<<20, I'm not familar with that operator.  How
> would I adjust it for different sizes?  

Well, you could (and should!) study the python documentation.
But this one is only an example. You can write the maximum
however you want, as literal value: 1000000 or
1e+6 or 1000*1000 or 10**6 ...

If you have an imagination of what value you want, just write it
there :-)





More information about the Zope mailing list