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
When I upload an image with larger dimensions than max_image_height_or_width validation UploaderImageDimensionsValidator doesn't work. Then when I try to update the ContentBlock with/without changes I get ActiveRecord::RecordInvalid (Validation failed: Images container is not valid).
To Reproduce
Go to Admin -> Settings -> Homepage -> Edit Hero Image.
Choose a bigger image than 8000 (actually limit now) and save (dimensions validation doesn't work).
Edit again Hero Image and save (with/without changes).
Get ActiveRecord::RecordInvalid (Validation failed: Images container is invalid).
Expected behavior
I expect the validator UploaderImageDimensionsValidator, despite the file not being persisted yet, to create a tmp file to get metadata from MiniMagick to check the dimensions.
Screenshots
Stacktrace
No response
Extra data
Device: Mac mini
Device OS: macOS 14.3.1
Browser: Safari/Chrome
Decidim Version: 0.26.9
Decidim installation:
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When I upload an image with larger dimensions than
max_image_height_or_width
validationUploaderImageDimensionsValidator
doesn't work. Then when I try to update theContentBlock
with/without changes I getActiveRecord::RecordInvalid (Validation failed: Images container is not valid)
.To Reproduce
Expected behavior
I expect the validator
UploaderImageDimensionsValidator
, despite the file not being persisted yet, to create a tmp file to get metadata from MiniMagick to check the dimensions.Screenshots
Stacktrace
No response
Extra data
Additional context
No response
The text was updated successfully, but these errors were encountered: