I've got #2070 on my django installation, but that won't help when I access the 'content' attribute. I see that snippet #370 [1] uses the FileWrapper from Django to split the file into chunks. Could that be used on the FILES-object too?
[1] http://www.djangosnippets.org/snippets/365/ On Aug 14, 7:03 am, simonbun <[EMAIL PROTECTED]> wrote: > Hi, > > You'll want to take a look at ticket #2070 [1] for streaming uploads. > It has a working patch that will make it to trunk pretty soon I think. > I'm not sure how you would handle streaming uploads directly to a S3 > bucket, but it shouldn't be too hard to hack the patch from the > ticket. > > [1]http://code.djangoproject.com/ticket/2070 > > regards, > Simon > > On Aug 14, 3:10 am, Henrik Lied <[EMAIL PROTECTED]> wrote: > > > Hi there! > > > I'm using Amazon S3 for file storage, and I have to send the file > > directly from request.FILES. > > (I could always save the file locally first, send it to Amazon and > > then delete it from my local server, but this would double the wait > > for the user.) > > > Is there a way to only load chunks of the uploaded file into memory, > > instead of loading the whole thing at once? And here comes an even > > better question: Would it be useful? > > > Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---