On Jun 30, 6:15 am, umrzyk <[EMAIL PROTECTED]> wrote: > hi there, > i would like to give my users ability to upload a huge (i.e. 10-20 MB) > files, mostly images. standard uploading using django newforms and > FileField is at the moment not an option. it kills my > server immediately. recently i read about streaming upload, and.. wow, > that's it! so i patched my django sources with 2070-r7728.patch (no > conflicts) and gave it a try. here are the problems: > > - for small files (i didn't check what is a small file, i guess it's > something < 2.5MB as mentioned in doc) i got a validation message: > "the > submitted file is empty" > > - for larger files (i tried 11MB) i got an error from server: "413 > Request Entity Too Large" > > i'm sure i'm doing something wrong, actually i'm the beginner. could > you > suggest where should i start searching? Or could you help me with a > sample snippet that would upload the file in a given directory? > > running server is nginx 0.7.1 withmod_wsgi
You may have to to ask the author of nginx mod_wsgi whether streaming uploads is even possible. I vaguely remember from discussions, that due to nginx mod_wsgi being an event driven system, rather than using a threaded model, that it may have to read complete request content into memory or onto disk before it even executes the application. If it is into memory, then what you are trying to do may not help as far as memory usage. Graham --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---