Opened 20 months ago
Last modified 20 months ago
#34541 closed New feature
StorageRouter — at Initial Version
Reported by: | Vasanth | Owned by: | nobody |
---|---|---|---|
Component: | File uploads/storage | Version: | 4.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
With the recent addition of STORAGES, would it it 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.
This 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 coient/subdomain.
Related to #34540