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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2755 Views

Avatar
Briohny

Community Member, 199 Posts

24 February 2009 at 1:18am

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

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.

lukas

Avatar
Briohny

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

Avatar
sonicparke

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!

Avatar
SuperBlues

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?

thanks

Avatar
Mo

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:

/etc/

On windows it will probably be under:

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

Hope that helps.

Mo