I'm using a non-Django form for a very large file upload ( I've never used FileField, because they used to give me problems, and this code has worked forever for smaller files ).
It seems to work great with files 32MB and smaller... but anything over that seems to throw this mod_python MemoryError. I am all for using FTP, but the powers that be ( my boss/project manager ) would like people to be able to upload a 150MB file via form post ( I know it takes over an hour..nuts ). This is my code: fout = file (os.path.join(getUploadDir(), filename), 'wb',10000) while 1: chunk = fileitem.file.read(10000) if not chunk: break fout.write (chunk) fout.close() Anyone been successful w/ Django + mod_python and really large file uploads? I saw something about a streaming file upload patch, but I'm assuming I'd have to switch to FileField for that, and wanted to see if anyone had tried it first... Thanks for any info. Carole --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---