but somehow i can not get the file contents in any way.
I tried the (ionChange)$event but it only contains the fakepath. No files[] anywhere (not in srcElement or traget or anywhere else)
The ngModel never is set, it is allways âundefinedâ.
When i use <form (ngSubmit)="addVideo($event)"> to get the form data I still donât get any file contents and the ngModel is still âundefinedâ
what am I Missing?
I need to upload this file with FormData() and HttpClient from â@angular/common/httpâ
but that expects a Blob and i canât even get a base64 string or ArrayBuffer anywhere
greeting and thank you,
this is probably a pretty stupid question but I am already working on this for 1 Day and can not get it.
I canât get âelâ or ânativeElementsâ from fileChooserElementRef.
Also, console logging the elementRef by itself shows nothing in the logs.
Typing anything after the elementRef shows a message in visual studio saying that direct access to the Dom is not supported when application runs in a web worker.