﻿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
9894	Give the FileField 'upload_to' callable access to an UploadedFile's contents.	Pyth	nobody	"`FileField.upload_to` allows for a callable and requests an `instance` and a `filename`.  Because it may be of interest to the programmer to use the file's content (MD5 sum, MIME type, ID3 tags etc.) in the upload path, it would be handy to be able to access it from the callable method.

One possibility would be to pass an `UploadedFile` instead of a `filename` but this would break the compatibility policy in 1.0.X.  Temporarily, this functionality could be added via an `uploaded_file` or `content` property added to the instance (in `FieldFile.save()`), making it accessible from the `upload_to(instance, filename)` callable with `instance.uploaded_file`.

I'll throw up some patches if this makes any sense."	New feature	closed	File uploads/storage	1.0	Normal	wontfix	feature upload_to FileField	ashwoods	Accepted	0	1	1	1	0	0
