tags:

views:

304

answers:

2

I am attaching a file in a node in drupal using File Attachment. But it is not allowing me to upload a file greater than 1MB. I want to upload a file of 50MB. How to increase this size. Thanks in advance.

+2  A: 

Add the below to the relevant php.ini file (recommended, if you have access). Note that for some hosts this is a system-wide setting. However, for hosts running PHP as a CGI script with suexec (for example) you may be able to put these directives in a php.ini file in your Drupal root directory.

  • upload_max_filesize = 50M
  • post_max_size = 50M

Add the below to your .htaccess file in your Drupal root directory.

  • php_value upload_max_filesize 50M
  • php_value post_max_size 50M
streetparade
I am using GoDaddy, I dont have access to PHP.INI.
vaibhav
read Add the below to your .htaccess file in your Drupal root directory.o php_value upload_max_filesize 50Mo php_value post_max_size 50M
streetparade
A: 

Apart the limit set by PHP, there is also a limit set by Drupal, which is per role. Once you changed the limit set by PHP, you should also change the limit set by Drupal, to get the desired effect.

kiamlaluno