Changes between Initial Version and Version 1 of Ticket #34541
- Timestamp:
- May 4, 2023, 1:30:20 PM (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34541 – Description
initial v1 1 1 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. 2 2 3 Since the storage callable in Filefields are called during build, it cannot be used to dynamically set the storage class during runtime.3 Since the storage callable in Filefields are called during build, it cannot be used to dynamically set the storage class during runtime. 4 4 5 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. 5 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. 6 7 In case of fields that have a field level storage class and StorageRouter, priority has to be resolved by the router. 6 8 7 9 Related to #34540