Tagged: file upload
Currently we can receive from backend to frontend file upload component only error event(uploadError) without specific reason.
On the backend side We can exactly validate uploaded file for a lots of different issues
subsequently send to frontend via API 400 Bad Request with specific reason(parameter).
Frontend file upload component can handle Bad request as event(uploadError) but without parameter of specific reason.
Can We obtain specific file upload validation errors?
The fileUpload has a responseHandler callback function, which can be defined for validation purposes. In this help tutorial is shown how to set it up. Web Components Fileupload – Getting Started | Fileupload Component | https://www.htmlelements.com/
Smart UI Team