Showing results for 
Search instead for 
Did you mean: 

Implement Gaufrette for /media file storage abstraction

Implement Gaufrette for /media file storage abstraction

Magento 2 stores files on disk in the /media dir, but this makes multi-server setups more complex as this dir needs to be shared by all machines.

At the same time, cloud storage is very flexible and scalable (no more running out of disk space for example).

By implementing Gaufrette, a well-known file system abstraction layer from the Symfony world, we can put our media files anywhere we like, including S3, Google Cloud, FTP and countless more places.

And should a developer ever need more than this, a custom file system can be developed easily too.
1 Comment
Wouter Samaey
Senior Member

For people who don't know Gaufrette. This is the URL: