Jump to:

23376 Posts in 18177 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Large pdf files

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

Page: 1
Go to End
Author Topic: 1740 Views
  • Briohny
    Avatar
    Community Member
    199 Posts

    Large pdf files Link to this post

    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.

  • lerni
    Avatar
    Community Member
    80 Posts

    Re: Large pdf files Link to this post

    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

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: Large pdf files Link to this post

    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!

  • sonicparke
    Avatar
    74 Posts

    Re: Large pdf files Link to this post

    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!

  • SuperBlues
    Avatar
    Community Member
    25 Posts

    Re: Large pdf files Link to this post

    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

  • Mo
    Avatar
    Community Member
    505 Posts

    Re: Large pdf files Link to this post

    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

    1740 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.