﻿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
34541	StorageRouter	Vasanth	nobody	"With the recent addition of STORAGES, would it be possible to have a StorageRouter that mimics the functionality of the DatabaseRouter but for files/storage classes?

Since the storage callable in Filefields are called during build, it cannot be used to dynamically set the storage class during runtime.

However dynamically setting the storage class would be particularly useful for cases where data for specific models needs to stored elsewhere or for SaaS backends provide independent and isolated buckets for each client/subdomain.

In case of fields that have a field level storage class and StorageRouter, priority has to be resolved by the router. 

Related to #34540 "	New feature	new	File uploads/storage	4.2	Normal				Unreviewed	0	0	0	0	0	0
