Closed ishitatsuyuki closed 2 years ago
Thanks for reporting that! It’s now fixed for the next release.
To get the fix early, change your craftcms/cms
requirement in composer.json to "dev-develop as 4.0.2"
and run composer update
.
Craft 4.0.3 is out now with those fixes.
What happened?
Description
There's a type error when the following reproduction steps are followed.
Steps to reproduce
Expected behavior
Assets get uploaded.
Actual behavior
Upload gets stuck at 100%. I've found that assets related things will not properly display a message if a server error happens. Is that a known problem.
Fix
Change https://github.com/craftcms/cms/blob/da7da4dcb4a293ef5e2a2d961d07fd273ad9cca3/src/fields/Assets.php#L932
to:
Craft CMS version
4.0.2
PHP version
8.1.5
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response