[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

checking if we should replace our java-app with Scala + Lift 2 days 16 hours ago
I'm hiring a senior Java programmer 4 days 12 hours ago
got our new website on air - http://t.co/NsV6xFLI tell me if you like it or not 5 weeks 2 days ago
בואו לראות את האתר חדש שהעלינו היום- http://lnkd.in/dm6TVj 1 year 1 day ago
פורמייקה פסים אפור kitchen-stock.co.il/content/פורמייקה-פסים-אפור 1 year 7 weeks 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.