Re: Halting large form-based file uploads

2010-10-14 Thread Ross
On Oct 13, 11:16 pm, Jonathan Barratt wrote: > No need to worry, since Python features automatic memory management this will > be cleaned up as part of the normal garbage collection routines. Sounds great. Thx for the info. > > > 2. Is there any way for me to verify and halt based on file si

Re: Halting large form-based file uploads

2010-10-13 Thread Jonathan Barratt
Hi Ross, > I'm using a simple html form to upload a few simple text files to my > Django-based application. > 1. Django docs says that any file under about 2.5M gets held in memory > until I save it away. I assume then, that if I don't save it, the > hander def in my views.py finishes and th

Halting large form-based file uploads

2010-10-13 Thread Ross
I'm using a simple html form to upload a few simple text files to my Django-based application. It's working nicely, I'm able to retrieve the request.FILES objects and store them away as I wish. Upon receipt of the request object in my views.py I get the file object, and check its size with r