---
title: "How to add a subfolder to default image directory in Drupal 7"
description: "When working with images, Drupal 7 stores those that are uploaded in a specific folder. This folder varies with different content types. With the Article content type, the Image field is enabled by..."
url: https://www.inmotionhosting.com/support/edu/drupal/add-image-subfolder/
date: 2012-07-25
modified: 2021-08-16
author: "Scott Mitchell"
categories: ["Drupal"]
type: post
lang: en
---

# How to add a subfolder to default image directory in Drupal 7

When working with images, Drupal 7 stores those that are uploaded in a specific folder. This folder varies with different content types. With the Article content type, the Image field is enabled by default. The default image folder is set to ***/sites/default/files/styles/large/public/field/image/***.  Fields added for other content types such as the Basic Pages and Blog Entry have a default image location of ***/sites/default/files/***.

Perhaps you want to have all Basic Pages have images stored under a separate folder named ‘*pages*‘ and Blog Entry images stored under a folder named ‘*blog*‘. Drupal 7 allows you to add subdirectories to the default storage area for the image field for each content type. To see how to store images in a specific subfolder in Drupal 7, simply follow the instructions below.

**How to store images in a subdirectory in Drupal 7**

1. [Log into the Drupal 7 admin dashboard](/support/edu/drupal/how-to-log-into-the-drupal-admin-dashboard/).
2. Using the top menu bar, locate and click on the **Structure **option.[![structure](https://www.inmotionhosting.com/support/wp-content/uploads/2012/03/edu_Drupal_7_Structure_structure.png)](/support/wp-content/uploads/2012/03/edu_Drupal_7_Structure_structure.png)
3. From this next page, click on the **Content Types** link.[![content-types](https://www.inmotionhosting.com/support/wp-content/uploads/2012/07/edu_Drupal_7_Structure_Content_Types_content-types.jpg)](/support/wp-content/uploads/2012/07/edu_Drupal_7_Structure_Content_Types_content-types.jpg)
4. On the **Content Types** page, find the type of content you want to work with. In our example, we will work with **Basic Pages**. After locating your content type, click on the **Manage Fields** link for your selection.[![manage-fields](https://www.inmotionhosting.com/support/wp-content/uploads/2012/07/edu_Drupal_7_Structure_Content_Types_manage-fields.jpg)](/support/wp-content/uploads/2012/07/edu_Drupal_7_Structure_Content_Types_manage-fields.jpg)
5. Find the **Image** row and then click on the **Edit **link to take you to the settings page.[![image-edit](https://www.inmotionhosting.com/support/wp-content/uploads/2012/07/edu_Drupal_7_Structure_Content_Types_image-edit.jpg)](/support/wp-content/uploads/2012/07/edu_Drupal_7_Structure_Content_Types_image-edit.jpg)
6. On the settings page, you will want to scroll down and find the** File Directory **setting. Enter the name of the subfolder you want to store your images in for this content type. Be sure NOT to add any preceding or trailing slashes.[![image-directory](https://www.inmotionhosting.com/support/wp-content/uploads/2012/07/edu_Drupal_7_Structure_Content_Types_image-directory.png)](/support/wp-content/uploads/2012/07/edu_Drupal_7_Structure_Content_Types_image-directory.png)
7. Click on the **Save Settings** button at the bottom of the page to save the new subfolder directory setting. Any future images added to this content type will be saved in the */sites/default/files/pages* directory.
