From e2efc8965edf684aaf48621680ef54b84e116576 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sun, 25 May 2014 22:52:47 +0200 Subject: Fixed #22680 -- I/O operation on closed file. This patch is two-fold; first it ensure that Django does close everything in request.FILES at the end of the request and secondly the storage system should no longer close any files during save, it's up to the caller to handle that -- or let Django close the files at the end of the request. --- docs/releases/1.7.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 6e38d09f61..0c7c4748c8 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -504,6 +504,10 @@ File Uploads attribute is now optional. If it is omitted or given ``None`` or an empty string, a subdirectory won't be used for storing the uploaded files. +* Uploaded files are now explicitly closed before the response is delivered to + the client. Partially uploaded files are also closed as long as they are + named ``file`` in the upload handler. + Forms ^^^^^ -- cgit v1.3