Back to Linux Basement

Drupal Max Filesize for uploads | Linux Basement Presents: Chad's Blog

Drupal Max Filesize for uploads

I always wondered why even when you set your php.ini file settings to upload_max_filesize = 100M (or whatever) and post_max_size = 100M (or whatever) in Drupal, your max upload size would show up as 50M. I ran by this post today

http://drupal.org/node/97193

If you look at the bottom, you find the answer. Check out your includes/file.inc file and search for

$post_max = parse_size(ini_get(’post_max_size’)) / 2;

Change it to

$post_max = parse_size(ini_get(’post_max_size’)) / 1;

You could experiment with taking the line out, but being that it is doing a simple / 2 , if you change it to dividing by one /1 it will do nothing, and you don’t have to worry about a missing function.

Yay.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Friday, November 9th, 2007 Open Source, drupal, technology

No comments yet.

Leave a comment

You must be logged in to post a comment.

Search

 

Chad's Twitter

Favorites