0
  • Hello,
  • am using the angular 6 and type script
  • am running app from chrome
  • developed input type text and input type file(display:none) and upload button

My HTML

<input #inputVal type="text" (keyup.enter)="uploadEnter($event, inputVal.value)">
<input style="display:none" type="file" id="selectedFile" (change)="uploadFile($event)" accept=".zip" multiple />
<img width="20px;" src='/assets/img/upload.png' (click)="upload($event, inputVal.value)">

My Component

uploadEnter(event, value) {
  console.log('read input path value ', value);
  // validating the Local path and open specified folder location
  /* const win = loadURL(value);
  win.focus(); 
  window.location.assign(value); */ // these are not working
}
upload(event, value) {
  console.log('event called open windows location and select zip file');
}
  • from above code upload click event working and am able to upload zip file,
  • my goal is open windows explorer with a particular folder from(given input text)
  • can please give solutions or suggestions on this, save my days
kks
  • 342
  • 5
  • 25

0 Answers0