I use the FineUploader. Maybe this issue occurs on other uploaders too.
The gallery endpoint returns for example this:
{"error":{"code":500,"message":"Internal Server Error","exception":[{"message":"The file \"Bla.png\" exceeds your upload_max_filesize ini directive (limit is 2048 KiB).","class":"Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException","trace":
How to catch and pass it to the frontend to show this error to the user?