Trying to figure out how does django handle uploads with wsgi. My main
question is about handling errors, there is no .read() operations
neither in http/multiparser.py nor in uploadhandler.py wrapped in try-
except. All multipart-related infrastructure relies on checking about
InputStreamExhausted which is all about Content-Length field, so it
just trust it without any further checks. Raw posts are handled
completely without try-except checks, just environ['wsgi.input'].read
()

In case of closed connection, wrong data length any other errors what
django is going to do? Where all these cases are handled?
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to