From 33666ef829615b98937b739ecca8adf413d1418c Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 7 Jul 2008 23:36:53 +0000 Subject: [PATCH] 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 --- docs/upload_handling.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/upload_handling.txt b/docs/upload_handling.txt index 897c7817f63..3b88ce4e3d8 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)