Check patch #2070.

On Aug 27, 2006, at 08:36, pear_eater wrote:


Hi.
I'm developing a file uploader.And I need to upload large files(over
100MB).
But on django's admin interface, it uses memory too much .Then I'm
trying to write a new interface.

like...

if request.POST:
    import os.path
    path = os.path.join(MEDIA_ROOT,
request.FILES['file_file']['filename'])
    f = open(path, 'wb')
    for c in request.FILES['file_file']['content']:
        f.write(c)
    f.close()

But it also uses memory too much...
What's the way to resolve this problem?

Pear eater


--~--~---------~--~----~------------~-------~--~----~
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- [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/ group/django-users
-~----------~----~----~----~------~----~------~--~---



Jean-François Roy

--
Co-Founder of MacStorm
/dev/klog. You better pipe that through your mind.

http://www.devklog.net
http://www.macstorm.org
[EMAIL PROTECTED]

http://www.devklog.net/documents/Jean-Francois_Roy.gpgkey
Fingerprint: 06CD 6F7B 4BF0 2AC6 78B2 57A3 06BE 6CB3 0591 FA2D

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to