﻿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
34540	[feature request] Run FileField storage callable during runtime and not during buildtime	Vasanth	nobody	"If the storage callable can be invoked during runtime similar to the ""upload_to"", it can allow us to choose the storage to use dynamically. This is particularly helpful for SaaS services which prefer maintaining independent storages per client/subdomain.

Something like, the following snippet where ''local_state.tenant'' is threading local() which holds the name of the tenant for each request


{{{
def tenant_storage(instance, filename):
    tenant = getattr(local_state, ""tenant"", ""default"")
    return storages[tenant]
}}}
"	New feature	closed	File uploads/storage	dev	Normal	wontfix			Accepted	0	0	0	0	0	0
