﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36191	FileSystemStorage with allow_overwrite=True does not truncate previous file	Gaël UTARD	Gaël UTARD	"The new allow_overwrite parameter of FileSystemStorage class allows to overwrite an existing file. However, the previous file is not truncated. So, if the previous file was bigger than the new, the file gets corrupted.

It is possible to workaround with :
{{{
storage.OS_OPEN_FLAGS = storage.OS_OPEN_FLAGS & ~os.O_EXCL | os.O_TRUNC
}}}

"	Bug	closed	File uploads/storage	5.1	Release blocker	fixed			Ready for checkin	0	0	0	0	0	0
