7912 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 2996 Views |
-
Re: set max filesize for ImageGallery possible?

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.
-
Re: set max filesize for ImageGallery possible?

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.
-
Re: set max filesize for ImageGallery possible?

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..
| 2996 Views | ||
| Go to Top |

