JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums General Discussions File upload component, pass specific validation error

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102427
    Lukac.Jozef
    Participant

    Hello,

    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?

    #102433
    admin
    Keymaster

    Hi Lukac,

    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/

     

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.