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