﻿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
18899	FileSystemStorage.save should support any file-like objects	Vlastimil Zíma	Marcin Biernat	"I propose generic support of `FileSystemStorage.save()`, so `content` argument can be any object with `read([size])` method.

I see no reason why `FileSystemStorage` does not support regular file-like objects. IT is common practise to support any file-like objects in python libraries, where file-like object is an argument.

Blocker of this is `content.chunks()` call which itself is nothing else then generator over `file.read(chunk_size)`. Storage itself could easily call `content.read(chunk_size)` directly which grants support to various file-like objects.

Calls like this are just weird:
{{{
#!python
storage.save(target, File(open(filename)))
}}}
The `File` objects is here only because it has `chunks()` method required by `FileSystemStorage.save()` call.

I have seen #8204 but I do not require anything so specific. It is just painful, when you want to use storage for anything else than file from query or form."	Cleanup/optimization	closed	File uploads/storage	1.4	Normal	fixed			Ready for checkin	1	0	0	0	0	0
