locked
[Angular with WebAPI] Script on client side, return result to the template RRS feed

  • Question

  • User791773689 posted

    Hello everybody,

    For an image upload, I want to read a file on the client side to convert it to byte array, to send that to the server after getting it from the template.

    One method is to write a method with arguments event and component=this.

    Well, but it appears if I put parenthesis after the name of the method, event.target is undefined, and if I do not put parenthesis, the function is not called at all.

    Does anybody have any idea about this ?

    Wednesday, September 11, 2019 6:23 PM

All replies

  • User61956409 posted

    Hi Gluups,

    if I put parenthesis after the name of the method, event.target is undefined, and if I do not put parenthesis, the function is not called at all.

    Please the relevant code snippet that cause the issue, so that we can understand and troubleshoot the issue better.

    With Regards,

    Fei Han

    Thursday, September 12, 2019 5:28 AM