Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community
Craft 4 introduces the concept of Filesystems and this is how they work alongside Asset Volumes.
In Craft 4, we now have the concept of Filesystems. While it is a new concept, it’s just a break away from the Volumes functionality we know well from Craft 3.
In Craft 3, we have just one concept for storing and retrieving custom uploaded files: Assets Volumes. These volumes have the following attributes:
This setup combines both the storage location (some directory on disk or in a remote volume, like Amazon S3) and specifics about the assets being stored (fields, etc).
In Craft 4, the concept of Assets Volumes in broken up into two pieces, with filesystems holding the information about the actual storage location.
Filesystems have the following properties:
Asset Volumes now have the following properties:
Asset Volumes are created separately and then linked to a filesystem. You can only have one filesystem link in an assets volume. If you want to control the filesystems by environement, then you should use environment variables.
What's New in Craft CMS 4 is made up of the following videos: