﻿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
30694	Document FileResponse does not seek its file source	Claude Paroz	nobody	"I'm not sure this is a bug, but I was bitten by some code today:

{{{
buffer = io.BytesIO()
buffer.write(b'some binary content')
return FileResponse(buffer, filename='somename.bin')
}}}
and the response is empty because the stream position is at the end of the buffer. I can easily fix that by seeking the buffer myself, but shouldn't `FileResponse` seek itself in `_set_streaming_content` before calling `filelike.read`?"	Bug	closed	Documentation	2.2	Normal	fixed			Accepted	1	0	0	0	0	0
