﻿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
8204	FileSystemStorage should make it easy to save other types of files	Julien Phalip	nobody	"It is quite common to use PIL to modify an uploaded image, e.g. create a thumbnail:

{{{ 

from PIL import Image

uploaded_image = Image.open(StringIO.StringIO(uploaded_file.read()))
... # Modify image, e.g. create thumbnail
uploaded_image.save('/blah/image.gif')
thumbnail_image.save('/blah/image_thumbnail.gif')

}}}

Now that the new file storage system has been merged in trunk, I could not find any easy way to use {{{FileSystemStorage}}} for saving PIL images. The problem is that {{{FileSystemStorage}}} assumes that it's given {{{InMemoryUploadedFile}}} or {{{TemporaryUploadedFile}}} (for example).

It seems quite essential that there should be a fall back option to manage other kinds of file content."		closed	Uncategorized	dev		wontfix		flori@…	Unreviewed	1	0	0	1	0	0
