I looked around in Issues on Github and didn’t see anything like this, but it’s possible I missed it. I’m trying to see if it’s possible to have more than one storage per storage type in a single attachment.
For instance, in my case I’m using Wasabi which has an S3-compatible API. I know that I can use direct-to-S3 multipart uploads from the browser and save the completed file data to a Shrine column. But what if I dynamically upload to the closest bucket, such that users in the US would save direct to a US East bucket, and users overseas would save direct to an EU bucket?
This is just for the cache phase, as no matter where it gets uploaded initially, I’d be using one store location, promoting the file from one of two or three cache locations to one centralized store location. Utilizing dynamically chosen global buckets for the initial cache is just very helpful for speeding up large uploads around the world. It’s essentially replicating a push zone CDN.
Is this doable right now, such that cache storage can be variable to some extent?