﻿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
7673	ImageField validation problem	Luca Lenardi	Jacob	"form.cleaned_data[image_field].read() seems to be empty when validating with custom validation using newforms.

{{{
...
if hasattr(data, 'temporary_file_path'):
    file = data.temporary_file_path()
else:
    if hasattr(data, 'read'):
        file = StringIO(data.read())
    else:
        file = StringIO(data['content'])
...
}}}

data.read() in the clean() method of ImageField becomes empty after the first read making the file unreadable in next custom validation."		closed	Forms	dev		fixed	2070-fix	boobsd@… justin.driscoll@…	Ready for checkin	1	0	0	0	0	0
