InMotion Hosting Support Center

In your Drupal 7 dashboard, there are many settings that you can customize when working with images, such as setting maximum or minimum image sizes. Another related setting you may want to set is the maximum upload size. This setting allows you to set a maximum file size for images to be uploaded. This way you can control the images to ensure that no files larger than a specific size are uploaded by your users. Setting the max image size is easy to do in the Drupal 7 admin area and is done by following these instructions.

Modifying the maximum image upload size in Drupal 7

  1. Log into the Drupal 7 admin dashboard.
  2. Using the top menu bar, locate and click on the Structure option.
  3. From this next page, click on the Content Types link.
  4. On the Content Types page, find the content type you are going to work with and click on the Manage Fields link. In this case, we are working with Basic Pages.
  5. Find the Image row and then click on the Edit link to take you to the settings page.
  6. On the settings page, scroll down and find the Maximum Upload Size setting. It is blank by default. This means that it will follow the setting max_upload_setting for php on your hosting account instead. Set your desired setting here. If you want it to be in kilobytes, simply put the number. For example '512' for 512 kilobytes. If you want to express the number in Megabytes, simply put the number, followed by a space, then 'MB'. For example, if you set it to 10 Megabytes you would enter '10 MB' as in our example below.

    Note that the notation below the Maximum Upload Size field states the current maximum of your php.ini as well. If you set the field to be a larger file size than the php.ini, it will cap it at the php.ini setting. If you need a larger setting, you will need to alter your php.ini file setting for upload_max_filesize.

  7. Click on the Save Settings button at the bottom of the page to save your new file upload maximum.
Continued Education in Course 109: Working with Images in Drupal 7
You are viewing Section 5: How to set max image upload file size in Drupal 7
Section 4: How to set the min upload image size in Drupal 7
Section 6: How to set the image title in Drupal 7

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

1 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!