Hi Ross, > I'm using a simple html form to upload a few simple text files to my > Django-based application.
<snip> > 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 that memory is freed - or do I > have to worry about that using up memory? No need to worry, since Python features automatic memory management this will be cleaned up as part of the normal garbage collection routines. > 2. Is there any way for me to verify and halt based on file size > DURING the upload? Yes, but it would be through your web server software rather than your web application itself. If you're using Apache you could use the LimitRequestBody directive (http://httpd.apache.org/docs/1.3/mod/core.html#limitrequestbody). hth, Jonathan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.