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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

set max filesize for ImageGallery possible?

Go to End

19 Posts   4393 Views


Community Member, 6 Posts

8 July 2010 at 11:44am

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.


Forum Moderator, 4102 Posts

8 July 2010 at 12:57pm

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.


Community Member, 3 Posts

4 November 2010 at 5:31am

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

Go to Top