Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » set max filesize for ImageGallery possible?

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3
Go to End
Author Topic: 3410 Views
  • staggerwing
    Avatar
    Community Member
    6 Posts

    Re: set max filesize for ImageGallery possible? Link to this post

    I'm having the same problem with the file size limit in SWFUpload. I put the following in 'mysite\_config.php' and nothing happened. The file size still showed a max of 20M

    SWFUploadConfig::set_var('file_size_limit', '50M');

    I then put this in the swfupload\_config.php file and this did change the error message but it's not exactly recognizing the file size.

    Now I get this when trying to up load a 17.5M MP3 file.

    "The file you selected is too big. The maximum size allowed is 50M. This file is 17.5M"

    Any help would be greatly appreciated.

  • UncleCheese
    Avatar
    4085 Posts

    Re: set max filesize for ImageGallery possible? Link to this post

    The max file size is whatever your PHP configuration allows. So it will do no good to put in a higher value. The file will just get rejected.

  • RidinHighSpeeds
    Avatar
    Community Member
    3 Posts

    Re: set max filesize for ImageGallery possible? Link to this post

    I tried using your scripts on page2 and when I upload an image over 2MB, it is broke in the preview as well as the main gallery. Now if I upload an image that is smaller in size, it works properly and displays just fine. I own a VPS and have set the PHP upload limit to 6MB, the images are all around 4MB in size..

    3410 Views
Page: 1 2 3
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.