Message of the day:
SS 4.4.2 is out. Changelog: https://github.com/silverstripe/silverstripe-framework/blob/4/docs/en/04_Changelogs/4.4.2.md
SilverStripe 4 related information and questions.
and tell me what you see
In DBFile add this
Does your DO $owns Image?
right. Only on publish though, not on save
At least, I am assuming this, based on what i've been told 😜
yes but the error is coming from Image::validate()
so to be clear, I am on the non Image DataObjects which has an image, when I upload the image, everything is fine, whgen I try to publish the DO, I get that error
and $this->file->getAllowedExtensions() will map that image category to the list of extensions
- public function __construct($record = null, $isSingleton = false, $queryParams = array())
- parent::__construct($record, $isSingleton, $queryParams);
Image constructor has this