[Skip Header and Navigation] [Jump to Main Content]

How Drupal manage file upload limits?

One of our clients has a big Power Point presentations he wanted to upload, to his website.

 

he tried changing the limits to 4M file-size using

/admin/settings/uploads 
 

But he failed, and got a long error message from Drupal, saying:

Your PHP settings limit the maximum file size per upload to 2 MB.
Depending on your server environment,
these settings may be changed in the system-wide php.ini file...

 

The solution is to:

find out where php.ini is by typing:

 echo "<?php phpinfo(); ?>"|php |grep Configuration 

then, edit php.ini , and increase the value of parameter

upload_max_filesize

It is also recommanded to increase the value of

  post_max_size 
 

to the same value of

  upload_max_filesize 
 

, and to increase significantly the value of

  max_execution_time
 

If you like to read more about it ,

here is a link to usefull article How do I increase my PHP file upload limit or change my php.ini settings?

Liked it? Have a Question on it?

Write a comment

The Devart Team

 

CMS -Content Management Systems
What is a CMS website
Drupal CMS
The Benefits of a Drupal website
DevArt- drupal websites
DevArt the website you need

Latest Tweets

DevArt: JCss version 6.x .1.1 is out http://tinyurl.com/27fbtzk 1 week 6 days ago
DevArt: דרופל הגיע לממשלת ישראל ! http://tinyurl.com/3x5k4zw 6 weeks 4 days ago
DevArt: יבוא נתונים וניהול מסדי נתונים בדרופל http://tinyurl.com/35khcav 7 weeks 3 days ago
DevArt: קביעת שפה הכניסה לאתר לפי ארץ באתר רב לשוני http://tinyurl.com/34ft4s9 8 weeks 4 days ago
DevArt: בניית אתרים דרופל- סיפורי לקוחות מרוצים http://dev-art.net/he/testimonials 9 weeks 2 days ago

Testimony

I have worked with DevArt for over a year and I highly recommend them for any drupal needs.

 

What has impressed me most about Avior, is his loyalty and integrity. He has always been there for my company and because I was a start up company even helped me out on a payment plan. He's also a very hard worker and worked many late nights before my launch

 

Andrew Gitt

Principal & CMO

Story Time For Me, Inc.