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

Large pdf files


Reply

6 Posts   1768 Views

Avatar
Briohny

24 February 2009 at 1:18am Community Member, 199 Posts

Hi,

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.

Avatar
lerni

25 February 2009 at 8:33am Community Member, 80 Posts

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.

lukas

Avatar
Briohny

25 February 2009 at 9:04am Community Member, 199 Posts

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! :)

Avatar
sonicparke

24 July 2009 at 4:48pm 74 Posts

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!

Avatar
SuperBlues

8 January 2010 at 8:06am Community Member, 25 Posts

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?

thanks

Avatar
Mo

25 August 2010 at 1:23am Community Member, 509 Posts

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:

/etc/

On windows it will probably be under:

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

Hope that helps.

Mo