By iraszl on
I have a flexinode that has an attachment field and I would like to be able to upload files that are larger than 2MB, but I'm not able to.
I've searched the drupal.org for answers:
1. I've set the settings for upload in administration.
2. I edited the settings.php and added two lines:
ini_set('post_max_size', '20M');
ini_set('upload_max_filesize', '20M');But it didn't help. What else shall I try?
Thanks!
Comments
I can upload a file of size
I can upload a file of size 3.8MB, but not 17MB. I'm stumped.
Similar thread that might
Similar thread that might help you, although yours is a flexinode based attachement field:
http://drupal.org/node/19326
Thanks, I've seen that
Thanks, I've seen that thread. I've tried what it suggests, but still no luck. I'm wondering if there is something very obvious that we are all missing...
---
http://creativebits.org
php.ini
Do you have access to php.ini on your server and if so dose it allow all directives to be changed via .htaccess?? What's the max file size in your php.ini?
--
Please read the handbook, search the forums, then ask...
http://drupal.etopian.net (Modules and Drupal Services)
I'll ask Dreamhost.
I'll ask Dreamhost. Thanks!
---
http://creativebits.org
They said being on a shared
They said being on a shared server I don't have access to php.ini and the maximum upload size is 7MB.
---
http://creativebits.org
Oh dear! I am on a shared
Strange limitation these guys have...
I am on a shared server too (at Pair Networks) and I can have my own copy of php.ini
>2M attachments - got it working
I managed to get >2M attachments working, but it may be specific to Gentoo Linux. I tried increasing numbers all over the Drupal webapp itself, to no avail. I then tried updating the 'settings.php' file. I then discovered multiple php.ini files on my system, and updated pre-existing values for both the 'upload_max_filesize' and 'post_max_size' parameters in all of them.
Specifically there was a '/etc/php/cli-php4/php.ini' that was the last one I changed, and it started to work after that. However, prior adjustments probably had an effect as well.
Is this something to do with seperate configs for PHP v5 vs. v4?
I spoke to my host company about this too
I use hostgator and they said that they would change php.ini to 5mb maximum. I asked why it has to be so low. They said it is because of load on the server. I don't really get this. I can use an ftp program to put or get a 300mb file if I want. How is that affecting the load on the server? Is there something about the way that PHP works that is inefficient? Anyone have an answer to this?
http://www.greasyfur.com/index.php