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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Large pdf files

Go to End

6 Posts   2313 Views


Community Member, 199 Posts

24 February 2009 at 1:18am


I have a $has_many file manager working on my site. I can upload pdf's perfectly... but only if they are under a few Mb. I want to upload pdf documents that are up to 5Mb or 10Mb in size. How do i do this? Do i have to change a _config.php or php.ini file?

Many thanks.


Community Member, 81 Posts

25 February 2009 at 8:33am

i gues its not related to pdf files - it's the filesize that matters. if you have access to php.ini check the value post_max_size.



Community Member, 199 Posts

25 February 2009 at 9:04am

Thanks Lerni. I checked the post_max_size and it was set to 8M. I actually found that it was the upload_max_filesize that was causing the files not to load. It was set to 2M so i just increased it. Thanks for pointing me in the right direction though! :)


74 Posts

24 July 2009 at 4:48pm

This helped me SO much! I could NOT figure out why I had one PDF file that wouldn't upload. it was 2.1MB. Once I changed the max upload size it uploaded just fine. THANKS!


Community Member, 25 Posts

8 January 2010 at 8:06am

Hi, I have the same problem but am not sure where to load the php.ini file. can you tell me where you loaded your file please?



Community Member, 541 Posts

25 August 2010 at 1:23am

The PHP.INI file is in different locations on different systems.

On Linux is is usually somewhere like:

/etc/php5/ or /etc/php5/apache2/

On Mac it is in:


On windows it will probably be under:

C:\php or C:\Program Files\php

Hope that helps.