You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 4, when saving, it will throw: InvalidConfigException('Asset not configured with its filename')
Easily fixed by providing filename in the config, but not what the intended behavior is, as I don't see anything in the changelog/upgrade guide about this.
Craft CMS version
4.0.4
PHP version
8
The text was updated successfully, but these errors were encountered:
(Validate newLocation on its own, and then save the asset without running additional validation. If either of those things didn’t happen, you would get a validation/ops error.)
So I’m not really considering this a regression, but it does make sense that you shouldn’t have to specify a newLocationand a filename, so I’ve made it possible to omit filename for Craft 4.1.
What happened?
Description
In 3.x, this code would work:
In 4, when saving, it will throw:
InvalidConfigException('Asset not configured with its filename')
Easily fixed by providing
filename
in the config, but not what the intended behavior is, as I don't see anything in the changelog/upgrade guide about this.Craft CMS version
4.0.4
PHP version
8
The text was updated successfully, but these errors were encountered: