What you get
File uploads and downloads behind a single interface, with the storage provider as a configuration choice.
-
S3-compatible storage
An S3 backend for AWS and the many providers that speak the same protocol.
-
Google Cloud Storage
A Google backend for projects that live on Google Cloud.
-
Automatic per credential
An automatic backend picks S3 or Google per call, based on the type of credentials it is given, so one application can serve both.
How it works
Cloud Storage is a typical Fractal port: the domain asks to store bytes with a content type and gets a reference back. Which provider handles it is decided by the adapter you install as a component and configure per environment.
That keeps provider details out of your business logic, and makes it straightforward to move from one provider to another later.