﻿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
34237	FileField does not take upload_to into account when setting unique=True	0x4A-0x41-0x4B	nobody	"#27188 added support for setting unique=True to the FileField.
This does not seem to take the upload_to argument into account.

As upload_to could be used to completely change the name of the uploaded file it should, in my opinion, be considered part of the filename.
Or should at the very least be mentioned in the docs for clarity.

If upload_to is defined, setting unique=True does effectively nothing right now. The file is passed on and a unique filename is generated (->The default behavior of adding an underscore followed by seven random characters) instead of raising an error."	Bug	closed	File uploads/storage	4.1	Normal	invalid	FileField, Unique, Storage, Upload		Unreviewed	0	0	0	0	0	0
