Hi, I've got a problem with limiting the maximum size of a file uploaded to my webapp. I subclassed FileUploadHandler and everything is working fine, but only with Django development server.
When running on lighttpd or nginx with mod_fastcgi (actually it behaves the same with apache + mod_python) my 'new_file' and 'receive_data_chunk' methods are called *after* whole request has been uploaded to the server... And my intention is to raise SkipFile/ StopUpload when uploaded data exceeds 100 kB or it's not an image. That leads me to believe, that lighty and/or fastcgi are buffering the requests before passing them on to Django. Therefore my question is: under which web server is it possible to use the features given to us by UploadHandlers and chunked uploads? Or even better still: how to disable buffering POST requests in Lighttpd? I asked that question on the Lighty support forums (http:// redmine.lighttpd.net/boards/2/topics/925), but without any answer. Actually there is a bug in Lighttpd, marked as fixed, concerning just the issue (http://redmine.lighttpd.net/issues/59), but I can find no information altogether about it. Hope you might be able to help me :-) Best regards, Tomasz Kopczuk. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---