mirror of
https://github.com/django/django.git
synced 2025-07-29 08:04:27 +00:00
Fixed #7638, a small typo in uploading files docs. Thanks, Horst Gutmann.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f804e7f038
commit
33666ef829
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ objects; see `UploadedFile objects`_ for a complete reference.
|
|||
Putting it all together, here's a common way you might handle an uploaded file::
|
||||
|
||||
def handle_uploaded_file(f):
|
||||
destination = open('some/file/name.txt', 'wb')
|
||||
destination = open('some/file/name.txt', 'wb+')
|
||||
for chunk in f.chunks():
|
||||
destination.write(chunk)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue