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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Import from an existing folder - not working?


Go to End


10 Posts   3172 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

11 May 2010 at 8:02am

You can't interrogate the file dimensions, but you can interrogate the file size, which is really all that matters with regard to your GD issues. By default, the max upload size is whatever the upload_max_filesize setting is in your PHP.ini. But you can override that in the getCMSFields() function:

SWFUploadConfig::set_var('file_size_limit','1MB');

Avatar
klikhier

Community Member, 150 Posts

11 May 2010 at 10:02pm

Thanks once more Uncle Cheese!

Go to Top