Django

Code

Changeset 7862

Show
Ignore:
Timestamp:
07/07/08 18:36:53 (6 months ago)
Author:
jacob
Message:

Fixed #7638, a small typo in uploading files docs. Thanks, Horst Gutmann.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/upload_handling.txt

    r7859 r7862  
    9292 
    9393    def handle_uploaded_file(f): 
    94         destination = open('some/file/name.txt', 'wb') 
     94        destination = open('some/file/name.txt', 'wb+') 
    9595        for chunk in f.chunks(): 
    9696            destination.write(chunk)