sm770
sm770

Reputation: 123

How to get full path of selected file on change of <input type=‘file’> using TypeScript/Angular 6

uploadWrapper($event)
  {
  console.log("Need the local computer path of file selected")
    }
<input  type="file" (change)="filesPicked($event)" class="form-control" multiple>

I need the full path of the file when user selects a file from Choose File.

Upvotes: 1

Views: 288

Answers (1)

JoH
JoH

Reputation: 554

Unfortunately, for obvious security reasons, JS doesn't have access to the file system.

Upvotes: 1

Related Questions