Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » File Upload Limit?

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: 4068 Views
  • SuperBlues
    Avatar
    Community Member
    25 Posts

    File Upload Limit? Link to this post

    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

  • OwenW
    Avatar
    Community Member
    45 Posts

    Re: File Upload Limit? Link to this post

    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

  • SuperBlues
    Avatar
    Community Member
    25 Posts

    Re: File Upload Limit? Link to this post

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

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: File Upload Limit? Link to this post

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

    4068 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.