Naming and organizing your folders
Organizing your files and folders on Sirv is a lot like how you’d organize them on your own computer. It’s looks and feels familiar, to its really easy.
Plan ahead, with folders
Think of a standard way to structure your folders for storing images and spins. Use folders and sub-folders to organise your files and it will help you navigate your files as your image hosting grows.
Aim for under 1,000
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.