TurnKey Linux Virtual Appliance Library

file upload limit in drupal?

helo

im traing to set file upload limit to 100 mb in drupal 2009.02:

  • i set 100 mb in .htaccess in section php5
  • i set 100 mb in /etc/apache2/php.ini

drupal in it self is still limited to 16 mb but phpinfo from drupal dir says its 100 mb.

do you know where is the 16mb variable ?

 

thanx for help

 

Alon Swartz's picture

possibly php memory limit

According to the Drupal Handbook, Drupal's limits on upload file size are determined by the server's PHP settings, as well as Drupal specified settings.

Here are a few resources:
http://drupal.org/node/97193
http://drupal.org/node/100373

After reading over a couple of articles, it seems that the php memory limit plays a part in the upload limit. I also read that Drupal divides the upload limit available in half for some reason, which leads me to the following conclusion:

The 16MB limit you are referring to stems from the php memory limit which is set to 32MB in /etc/php5/apache2/php.ini

Let us know if this solves your problem, and if so could you document all the changes you made to help others with a similar problem.

it worked

thanx, it worked, i head to change memory_limit and post_max_size to 64M (make sure you type M on the end, not MB).

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)