thomasvantuycom / craft-cloudinary

Cloudinary integration for Craft CMS
MIT License
5 stars 2 forks source link

User facing feedback when upload filesize exceeds cloudinary upload filesize #10

Closed robinbeatty closed 23 hours ago

robinbeatty commented 4 months ago

When an asset is uploaded which exceeds Cloudinary upload filesize limit, the only feedback on the craft ui is 'A server error occurred'. Don't know how feasible it is to pass the errors back to craft but would be great to be able to tell authors why the error occurred.

thomasvantuycom commented 2 days ago

The plugin is unable to relay the error message thrown by the Cloudinary adapter because the error is hardcoded in Craft's flysystem adapter. As a workaround, you can lower the maxUploadFileSize setting in Craft to match Cloudinary's size limit. This way, Craft will display an error message about the image exceeding the allowed size.