In case of HTTP error 400, rerender the page with the new JSON returned by ERP5.
Attach a file by drag & drop or click to upload