Upload into the cloud

If you want to store uploaded files in different locations your containers must implement the Sirius\Upload\Container\ContainerInterface.

The example below is not based on real-life code, it's for illustration purposes only.

$amazonBucket = new AmazonBucket();
$container = new AmazonContainer($amazonBucket);
$uploadHandler = new UploadHandler($container);

You can easily create upload containers on top of Gaufrette or Flysystem.