I'm working with this line of code that selects all the files in a folder.
<input type="file" id="filepicker" name="fileList" (change)="saveFolderLocation($event)" webkitdirectory/>
My goal is to determine the directory of these files. I tried using the following code to access the path of the first file, but I am only able to retrieve its relative path. I need the absolute path to store it as a string later on.
public saveFolderLocation(event: Event){
const element = event.currentTarget as HTMLInputElement;
let files = element.files;
console.log(Array.from(files)[0]['webkitRelativePath']);
}