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.
    structure
  3. From this next page, click on the Content Types link.
    content-types
  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.
    manage-fields
  5. Find the Image row and then click on the Edit link to take you to the settings page.
    image-edit
  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.

    image-max-upload
  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
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

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: support@InMotionHosting.com
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!