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.

Before you start, plan ahead

Think of a standard way to structure your folders for storing images and spins. You can create as many folders and sub-folders as you wish and yo uare encouraged to do so. Multiple folders will help you manage your files effectively as your image hosting grows.

Use predictable names

By using folder and file names that follow a particular format, you’ll be able to automatically serve images to the appropriate pages across your entire 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:

  • /vibram-bikila-evo/
  • /vibram-v-classic/
  • /vibram-kmdsport/

But better to arrange store them in a subfolder, such as this:

  • /products/vibram-bikila-evo/
  • /products/vibram-v-classic/
  • /products/vibram-kmdsport/

Or with product categories:

  • /products/vibram/bikila-evo/
  • /products/vibram/v-classic/
  • /products/nike/air-max-90/
  • /products/nike/air-huarache/

Or into a folder for all your spins:

  • /spins/vibram-bikila-evo/
  • /spins/vibram-v-classic/
  • /spins/vibram-kmdsport/

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:

  • /vibram-classic/
  • /Vibram-Classic/

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.

Keep it under 5,000

The maximum number of files or sub-folders in one folder is 300,000. However, the more files in a folder, the longer it takes to display them in your Sirv account or in FTP. The delay becomes increasingly noticeable when you go beyond 5,000 files or folders in a single folder. For say 10,000 items, it could take a few seconds to load the list of files/folders. It also demands a lot of server CPU and memory resources, so you’re recommended to organize your files into multiple folders and aim to stay below 5,000 items in each one.

Was this article helpful?