I'm using Angular 8. Upon button click I want to open a file dialog, select a file and then call an event that will handle this file.
Thank you, Zvika
I tried the following code in HTML. But I do not want anything to be displayed in HTML.
HTML
<p-fileUpload name="myfile[]" customUpload="true" auto="true" (uploadHandler)="onOpenFile($event)" accept="application/pdf"></p-fileUpload>
ts
public onOpenFile (event)
{
}