Filesystems

Filesystem Disks

The filesystem is the disk space where the application store all the images and other static files. The system provides a powerful filesystem abstraction. The Flysystem integration provides simple to use drivers for working with local filesystems, Amazon S3, Google Drive, Rackspace Cloud Storage, and SFTP. Even better, it’s amazingly simple to switch between these storage options.

We’re also planning to build a module for Dropbox cloud storage. The release date is not planned yet, though we can build it as custom work in you want.

 
By default, the platform uses theĀ local public disk. The public disk uses the local driver and stores these files in storage/app/public.

INFO: To make them accessible from the web, you should create a symbolic link from public/storage to storage/app/public. Most of the case the system will just work out of the box but few servers may cause problems creating the symbolic link. If your application can upload images/files successfully but the link seems broken, then you need to re-create the symbolic link manually to make it works.

 

To change the default filesystem driver open the .env and update the FILESYSTEM_DRIVER to any filesystem you want to use. You must have to configure the desired filesystem driver to make work. Change the FILESYSTEM_DRIVER from public to s3, google, rackspace or sftp.

.
.
.
FILESYSTEM_DRIVER=public
FILESYSTEM_CLOUD=s3
.
.
.

You can store files both locally and in the cloud. For this reason, you may specify a default FILESYSTEM_CLOUD driver here.

 

Amazon S3 Configuration >= V-1.1.2

To configure S3, get your own S3 configuration and credentials. Now open the .env file and update these keys with your values from Amazon S3. For convenience, these environment variables match the naming convention used by the AWS CLI.

.
.
.
AWS_KEY=
AWS_SECRET=
AWS_REGION=
AWS_BUCKET=
.
.
.

 

Google Drive Configuration >= V-1.2.2

Follow the Google Docs to obtain your own Client ID, Client Secret, Folder ID, and Refresh Token. Then update these keys with your values from Google.

.
.
.
GOOGLE_DRIVE_CLIENT_ID=
GOOGLE_DRIVE_CLIENT_SECRET=
GOOGLE_DRIVE_REFRESH_TOKEN=
GOOGLE_DRIVE_FOLDER_ID=
.
.
.

 

Rackspace Configuration >= V-1.2.0

To configure the Rackspace container, get your own configuration and credentials. Open the .env file and update these keys with your values from Rackspace.

.
.
.
RACKSPACE_USER=
RACKSPACE_KEY=
RACKSPACE_CONTAINER=
RACKSPACE_REGION=IAD
.
.
.

 

SFTP Filesystem Configuration >= V-1.2.0

To configure the SFTP Filesystem, open the .env file and update these keys with your configuration values.

.
.
.
SFTP_HOST=
SFTP_USER=
SFTP_PASSWORD=
SFTP_PORT=22
.
.
.

 
 
 

Was this page helpful?

Leave Comment