Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

File Upload Limit?


Reply


4 Posts   4208 Views

Avatar
SuperBlues

Community Member, 25 Posts

8 January 2010 at 11:03pm

Hi, I am having problems solving an issue where I am unable to upload files over 2Mb from within the Files/Images in the CMS. I have read the forum and there has been mention of a php.ini file being modified. I have placed a php.ini file in the root of my server but still have this problem. Any help or advice on where to place the php.ini file or indeed what to change within that file would be greatly appreciated.

Thanks

Avatar
OwenW

Community Member, 45 Posts

9 January 2010 at 2:48pm

Hey SuperBlues.

Your problem is indeed related to php.ini.

In php.ini there is a section related to file uploads that will have the following line in it;

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Change the 2M to be something more in line with what you need, then restart apache and you should be good to go.

It is also possible (though i have not tried this yet) to put the following line in to the .htaccess.

php_value upload_max_filesize 20M

Hope that helps.

Cheers
Owen

Avatar
SuperBlues

Community Member, 25 Posts

11 January 2010 at 1:20am

Hi thanks for clarifying but I have made these changes and still have a 2Mb limit it seems. I clarified that the limit had been changed by viewing the info.php page and it is set to 8mb now but still unable to upload anything larger than 2Mb.

I noticed that there is no value in the upload_tmp_dir does this need to be changed? If so what to?

thanks for any help here guys!!!!

Avatar
Sean

Forum Moderator, 922 Posts

11 January 2010 at 9:18am

You also need to increase the value of "post_max_size" in your php.ini file.