- Affected version
- 2.3.0 Beta 2
Prerequisites
The image is resized to max. 300 x 300 and uploaded afterwards
Actual Result
The source image is uploaded, the upload fails without a user-facing error
Suggested Fix
The upload must be routed through the attachment manager so client side image resizing is used
- Set
post_max_size
andupload_max_filesize
to 1 MB - Set max image dimensions to 300 x 300
- Click the editor toolbar icon Insert image
- Drop a large image (well > 1 MB and over 300x300) onto the drop area
The image is resized to max. 300 x 300 and uploaded afterwards
Actual Result
The source image is uploaded, the upload fails without a user-facing error
Suggested Fix
The upload must be routed through the attachment manager so client side image resizing is used
Yeah we're looking at just routing everything through the attachment manager.To support our chunked uploads Add-on I ended up just bypassing Froala uploads (via Insert Video dialog) and routing everything through flow.js, a similar approach could work for Images as well.
It does, but to be clearer we attempt WebP conversion client-side prior to upload. So, a 1920x1920 WebP.Hmm, yeah - that doesn't really answer my question