InMotion Hosting Support Center

When working with images, you may want to restrict them in ways that will help keep your site optimized. While you may limit them in physical size, you may also want to restrict them as far as maximum file size. This will force the node creators to optimize images if they exceed the limit even if they fit within any size restrictions you may have set..

How to set maximum file upload size in Drupal 8

  1. Log into your Drupal 8 admin interface.
  2. Using the top menu bar, Menu Tab.
  3. Now a second menu bar will appear. Click on the Structure tab to continue.
  4. From here, click on the Content Types option from the Structure page.
  5. Now that you are on the Content Types page, find the content type you want to set the image settings for. In our example, we will work with the Article type. Look tot he dropdown ont he right side of the Article row and Click on Manage Fields.
  6. You are now taken to the Manage Fields page. From here you see a list of the current fields for Article content types. Click on the Edit option from the dropdown to the right side of the Image field row.
  7. The Image Settings page appears, where you will need to find the Maximum Upload Size field. Here you can enter the maximum size you want any uploaded files to be. You may set the size by kb, MB, orFor our example, we are setting them at 2MB.
    Note:The maximum size entered here must first pass the settings in your php.ini file. This size setting is noted under the field itself. If you set a size here that is larger than the php.ini file setting, the file will be restricted by the php.ini setting. You may need to change your upload_max_filesize setting in your php.ini as well.
  8. Once you have entered your size restrictions for either one or both fields, click on the Save Settings button. Your new filesize settings will now be active.
Continued Education in Course 108: Managing Images in Drupal 8
You are viewing Section 5: Setting max file upload size in Drupal 8
Section 4: Setting max and min upload sizes for images in Drupal 8
Section 6: Adding a subfolder to image upload directories in Drupal 8

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Email Address:
Phone Number:

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?


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!