File Storage
Learn where EverShop stores the files you upload, what each storage provider needs, and which upload rules apply.
All these settings are in the File Storage & Uploads card of Setting › System Setting. Cloud storage also needs an account with the storage provider and some technical setup there. Most store owners ask their developer or hosting provider to set it up.
What the file storage holds
EverShop keeps every file you upload in one place, the file storage. This includes:
- Product and variant images from the Media card.
- Category images from the Category Image card.
- Images in descriptions, page builder banners and slideshows, and blog post thumbnails.
- Your Logo, Favicon and Social sharing image from the Branding card of Setting › Store Setting.
- Every file in CMS › Media library. See Media Library.
- Images that a product import downloads from other websites.
The sitemap and your theme's own files are not in the file storage.
Change a file storage setting
- Go to Setting › System Setting.
- Change the fields in the File Storage & Uploads card.
- Click Save below the card.
EverShop shows "System setting saved". The new settings apply to the next upload. You do not need to restart the store.
Where your files are stored
The Provider field decides where new uploads go.
| Provider | Where the files go |
|---|---|
| Local file system | The media folder on the server where your store runs. This is the default. |
| Amazon S3 / S3-compatible | A bucket in Amazon S3 (Simple Storage Service). Services that work the same way also fit, such as Cloudflare R2, DigitalOcean Spaces, Hetzner and MinIO. See Amazon S3 and S3-compatible storage. |
| Azure Blob Storage | A container in a Microsoft Azure storage account. See Azure Blob Storage. |
| Google Cloud Storage | A bucket in Google Cloud Storage. See Google Cloud Storage. |
With Local file system, the card shows the warning "Local storage is not recommended for production". The files live on one server. They can be lost when the server is replaced, moved or fails. Some hosting platforms also start every new version of your store on an empty disk. For a live store, choose a cloud provider.
How the connection test works
When you click Save with a cloud provider selected, EverShop first tests the connection. It uses the values in the form and the values managed by configuration. If the test fails, EverShop saves nothing, and the store keeps the provider it had before. The message starts with "Could not connect to" and names the cause. See Why does Save show "Could not connect to …"?.
- The test runs every time you save this page while a cloud provider is selected. A storage problem therefore also blocks a change to the upload rules.
- The test checks that EverShop can reach the storage. Visitors must also be able to read the files. See Why do images not show after I chose cloud storage?.
Fields managed by configuration
A developer or hosting provider can set storage values on the server. They use the store's configuration file or environment variables. Such a field shows its value as grey text with a note: "Managed by configuration (config file or environment variable)". To change it, ask your developer or hosting provider. A secret shows only its first 5 characters, followed by stars. Maximum file size and Per-type overrides can be locked in the same way.
The Provider field is never locked. The provider you save in the admin panel replaces the one in the configuration. If your developer or hosting provider set up your storage, do not change Provider.
What happens when you change the provider
EverShop does not move or copy files when you change Provider.
- New uploads go to the new storage. Files you uploaded before stay where they are.
- Each image keeps the web address it was saved with. EverShop does not update these addresses.
- Images on your own server keep showing, as long as the files stay on that server.
- Your storefront loads images from your own server and from the cloud storage that is selected now. It also loads them from addresses that your developer allowed on the server. Images in a cloud storage you used before can therefore stop showing on the storefront.
- CMS › Media library shows only the files in the storage that is selected now.
Choose your storage before you add your products. On a live store, ask your developer before you change it.
Amazon S3 and S3-compatible storage
Choose Amazon S3 / S3-compatible to store files in an Amazon S3 bucket. Services that work like S3 use the same fields.
| Field | What it does | Default |
|---|---|---|
| Bucket | The name of the bucket. Required: an empty field shows "Bucket is required". | Empty |
| Region | Where the bucket is, for example us-east-1. For an S3-compatible service, enter that service's value, such as fsn1 for Hetzner. Required: an empty field shows "Region is required". | Empty |
| Access key ID, Secret access key | The key pair that lets EverShop write to the bucket. You create it in your storage provider's console. The secret is shown as dots. Leave both fields empty when the server already has access to the bucket. An example is an AWS (Amazon Web Services) role. EverShop then uses the server's own access. | Empty |
| Custom endpoint | The address of an S3-compatible service, for example https://fsn1.your-objectstorage.com. Leave it empty for Amazon S3. | Empty |
| Force path-style | For a service with a Custom endpoint. Yes puts the bucket name in the path of each file address, not in the domain. MinIO needs Yes. Keep No for Amazon S3, Hetzner and Cloudflare R2. | No |
| Public base URL | Optional. The web address (URL) of a CDN (content delivery network), such as CloudFront, that serves the bucket. File addresses then start with this address. See The public base URL. | Empty |
Without a Public base URL, file addresses point straight at the bucket. The bucket must then let anyone read the files, for example with a bucket policy.
Azure Blob Storage
Choose Azure Blob Storage to store files in a container of a Microsoft Azure storage account.
| Field | What it does | Default |
|---|---|---|
| Connection string | The text that connects EverShop to your storage account. Copy it from the Azure portal: open the storage account, then Security + networking › Access keys. It is shown as dots. Required: an empty field shows "Connection string is required". | Empty |
| Container | The container that holds your files. If it does not exist, EverShop creates it when it first uses the storage, such as at the first upload. | images |
| Container access | Who can read a container that EverShop creates. Private (recommended): only with the account's keys. Public read for blobs: anyone who has a file's address. Azure accepts this only when "Allow blob anonymous access" is on in the storage account. It is off on new accounts. The field does not change a container that already exists. | Private (recommended) |
| Public base URL | Optional. The address of a CDN, such as Azure CDN or Front Door, that serves the container. See The public base URL. | Empty |
Visitors must be able to read your files. With a private container, set a Public base URL that serves it. Otherwise uploads work, but the storefront cannot show the images.
Google Cloud Storage
Choose Google Cloud Storage to store files in a Google Cloud Storage bucket.
| Field | What it does | Default |
|---|---|---|
| Bucket | The name of the bucket. Required: an empty field shows "Bucket is required". | Empty |
| Service account key | The whole content of a JSON (JavaScript Object Notation) key file of a Google Cloud service account. The account needs the Storage Object Admin role on the bucket. Text that is not a complete key file shows "Paste the entire content of the downloaded JSON key file". Leave the field empty when your store runs on Google Cloud with a service account. EverShop then uses the server's own access. | Empty |
| Public base URL | Optional. The address of a CDN, such as Cloud CDN, that serves the bucket. See The public base URL. | Empty |
Without a Public base URL, file addresses start with https://storage.googleapis.com/, followed by the bucket name. The bucket must then let anyone read the files.
The saved Service account key shows as plain text in this card. Anyone who can open Setting › System Setting can read it.
The public base URL
All three cloud providers have a Public base URL field. It lets visitors get your files through a CDN, while the bucket or container stays private.
- A file address is the public base URL, a slash and the file's path. An example path is
catalog/4424/3449/cup-white.jpg. The URL must therefore point at the root of the bucket or container. - For Azure, EverShop does not add the container name. Put it in the URL, such as
https://mystore.azureedge.net/media, or set the CDN's origin path to the container. - A change to the public base URL applies only to new uploads. Files you uploaded before keep their old address.
- Your storefront shows cloud images only from the storage addresses that are set now. Images with an old public base URL can therefore stop showing on the storefront.
Upload rules
The upload rules decide which files the admin panel accepts and how big they can be. They apply with every provider. EverShop checks them at upload only, so files you uploaded before are not affected.
| Field | What it does | Default |
|---|---|---|
| Allowed file types | The types of files you can upload. The choices are six image types (JPEG, PNG, GIF, WebP, AVIF and APNG) and PDF documents. Then come MP4, WebM and QuickTime videos, MP3, OGG and WAV audio, and ZIP archives. Choose at least one. Otherwise the field shows "Select at least one file type". SVG (Scalable Vector Graphics) images are not offered, because they can contain scripts. | The six image types |
| Maximum file size | The largest file you can upload, in megabytes (MB). It applies to each file, not to all files together. The number must be greater than 0. | Empty, which means 10 MB |
| Per-type overrides | Other size limits for some file types. See Per-type overrides. | None |
- A file of another type is refused with "The file you are trying to upload is not allowed".
- A file that is too big is refused. The message starts with "The file is too large."
- Image fields accept only images, even when you allow PDF or video files. Examples are the product Media card, the Category Image card and the Branding card. They refuse other files with "Only images are allowed". Other types can go into CMS › Media library.
- A developer can allow more types on the server. The card then lists them under Allowed file types, after "Also allowed via server configuration:".
Per-type overrides
A per-type override gives some file types their own size limit. For example, keep 10 MB for images and allow 50 MB for videos.
- Click Add type override. A new row appears.
- In the first field, enter a file type. Use an exact type, such as
video/mp4, or a family of types, such asvideo/*. - In the second field, enter the limit in MB.
- Click Save.
To remove a row, click the trash button next to it.
How EverShop chooses the limit for a file:
- An exact type wins over a family. Say
video/mp4has 100 MB andvideo/*has 50 MB. An MP4 file can then be 100 MB, and a WebM file 50 MB. - A file type without an override uses Maximum file size.
- An override does not allow a new type. Select the type in Allowed file types too.
Save checks each row. An empty type shows "Enter a type or remove the row". A type in the wrong form shows "Use type/subtype (video/mp4) or a family (video/*)". A missing or zero size shows "Enter a size" or "Enter a size greater than zero".
Troubleshooting
Why does Save show "Could not connect to …"?
The connection test failed, so EverShop saved nothing. The end of the message names the cause:
- "the bucket was not found — check the bucket name and region" (S3): the Bucket or the Region is wrong.
- "the bucket was not found — check the bucket name" (Google Cloud): the Bucket is wrong.
- "the bucket exists but in a different region — check the region" (S3): correct the Region.
- "access was denied — check the access key and secret" (S3): the keys are wrong. Or they have no access to this bucket.
- "authentication failed — check the connection string" (Azure): copy the Connection string again from the Azure portal.
- "access was denied — grant the service account the Storage Object Admin role on the bucket" (Google Cloud): give it that role.
- "the storage service could not be reached", or another technical text: EverShop cannot reach the service. Check the Custom endpoint of an S3-compatible service.
Why do images not show after I chose cloud storage?
Uploads work, but the storefront shows no picture. Check these causes:
- Visitors cannot read the files. Allow public reading on the bucket, or set a Public base URL that serves it.
- The Public base URL does not point at the root of the bucket or container. For Azure, it must include the container. See The public base URL.
- The image was uploaded while another cloud storage was selected. See What happens when you change the provider.
Next steps
- Add Product ImagesUpload product photos and choose the main image.
- Media LibrarySee, upload and organize the files in your storage.
- Logo, Favicon and Social ImageUpload the images that show your brand.
- SettingsAll the settings of your store.
For developers
Storage values can be set with system.s3.*, system.azure.* and system.gcs.* in the configuration. Environment variables, such as AWS_BUCKET_NAME, work too. The upload rules use system.upload_max_file_size and system.upload_max_file_size_per_type. Extra file types go in system.upload_allowed_mime_types. See File Storage.