<input hidden type="file" #file id="upload" (change)="uploadFile($event.target.files)" multiple>
uploadFile(event) {
this.message = '';
this.progressInfos = [];
for (let index = 0; index < event.length; index++) {
const element = event[index];
this.files.push(element);
this.largeFiles.push(element);
}
this.selectedFiles = this.largeFiles;
console.log(this.selectedFiles);
for (let i = 0; i < this.selectedFiles.length; i++) {
this.uploadAsync(i, this.selectedFiles[i]);
}
}
I want to know the real path of the file, not the fake path. Is there any way to know the real path when uploading a file? I keep getting fake routes.