mirror of
https://github.com/django/django.git
synced 2025-08-19 02:01:29 +00:00
[1.7.x] 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.
Backport of e2efc8965e
from master.
This commit is contained in:
parent
de0e285be8
commit
1ff11304dc
10 changed files with 79 additions and 6 deletions
|
@ -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
|
||||
^^^^^
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue