summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-07-07 23:36:53 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-07-07 23:36:53 +0000
commit33666ef829615b98937b739ecca8adf413d1418c (patch)
treec7ca8a99803b2e5b4067c2f53a1f0ce4c3a46199 /docs
parentf804e7f03810f5495445a2960d1ea7c6d0635328 (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/upload_handling.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/upload_handling.txt b/docs/upload_handling.txt
index 897c7817f6..3b88ce4e3d 100644
--- a/docs/upload_handling.txt
+++ b/docs/upload_handling.txt
@@ -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)