Arranging your folders
Sirv is an easy way to share and serve your files, so you'll probably use it increasingly more over time. Thinking of a logical folder structure from the beginning will help keep your files organized into the future.
Plan ahead, with folders
Folders and sub-folders are the best way to organize your files, helping you easily navigate and share your images, videos, PDFs and any other files.
At the very top level, aim to have a relatively low number of files. You can do this with very broad groups, for example if you're hosting product images on Sirv, create a top level folder called 'products', rather than storing each product or categories of products in the root of your account.
If you're hosting your 360 spins on Sirv, be sure to store each set of spin images in its own folder, to avoid confusion or endless scrolling of tonnes of images in a single folder.
Aim for under 1,000 files per folder
The maximum number of files/folders within a single folder is 5,000 and we recommend aiming for fewer than 1,000 files/folders in a single folder.
The limit exists to ensure your Sirv account and FTP respond rapidly. If your storage is growing well beyond 1,000 files/folders in a single folder, make a plan to split the contents into more subfolders. There are many ways to do this, one is to create a set of subfolders with the first one or two characters from the file/folder name. For example, a file with the name woman-shoe-174925.jpg could be moved to a folder wo/ like so wo/woman-shoe-174925.
Use predictable names
Name your folders and files according to a predictable naming convention and you'll be able to automatically serve images to appropriate pages across your site. For example, if you're hosting images for an ecommerce site, a logical folder structure would be one folder per category, with subfolders for each product. The category names would match your website identically and so would the product names or SKUs. That'll permit your product details page to automatically fetch the right images for the right product, automatically.
One folder per spin
If you're hosting 360 spins on Sirv, we recommend using one folder for each spin.
Folders could be stored in the root, like this:
But better to arrange store them in a subfolder, such as this:
Or with product categories:
Or into a folder for all your spins:
Or any other structure that makes sense for your business.
File name considerations
Sirv is case sensitive, so these two folders are unique, not the same:
You can use spaces in filenames - they will automatically be encoded as '%20'. However, to minimize the possibility of human error when coding, we recommend using hyphens '-' or underscores '_' instead of spaces.
If you move files or change their names, keep in mind that the original URLs pointing to those files will no longer work. If your website references old URLs, you'll need to update your site to point to the new file location.