﻿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
7632	UploadedFile does not work correctly with forms.ImageField (newforms)	tek	nobody	"I tried all the same with ""forms.Field"" - works well. But there is a problem if I try to use ""forms.ImageField"", it can't work correctly with the UploadedFile
This can be seen if you try to process the downloaded pictures using lib PIL.Image .

'''forms.py'''
It's not work:

{{{
class UploadFileForm(forms.Form):
    img = forms.ImageField(widget=forms.FileInput())  # or simple forms.ImageField()
}}}


It's work fine:

{{{
class UploadFileForm(forms.Form):
    img = forms.Field(widget=forms.FileInput())
}}}

-----------------------------------------------

I think it's bug, new version UploadedFile do not work as well as older.

For example what I am doing: 
               UploadedFile    =>   data = StrinIO(UploadedFile.read())   =>  Image.open(data) 
And what I got:
              IOError at /upload_image/
              '''cannot identify image file'''
It's work only if I use ""forms.Field""

"		new	Uncategorized	dev			UploadedFile, forms.ImageField		Unreviewed	0	0	0	0	0	0
