0

Can i get full path of a selected file using javascript like "C:/Users/Username/Downloads". Because i want to pass this path to python script which will perform some operation on selected file.

Asif Hussain
  • 93
  • 2
  • 3
  • 12
  • 2
    Does this answer your question? [How to get full path of selected file on change of using javascript, jquery-ajax?](https://stackoverflow.com/questions/15201071/how-to-get-full-path-of-selected-file-on-change-of-input-type-file-using-jav) – xavc Sep 03 '20 at 11:57
  • I just go through this link but it tells, For security reasons browsers do not allow to access the local file system. But i want to know that when we pass the path in src like this then how it reads that file from the location as i mentioned in src? – Asif Hussain Sep 04 '20 at 11:08

1 Answers1

-1

If you are using windows you can go into file explorer and open the folder you want then on the top you can right click on the opened folder and press copy file address as text.

  • The asker probably means a file uploaded from a user, so they need a full path on another computer (not their own). – Dan Homola Sep 03 '20 at 12:31
  • Thank you for your response, but i want to get full path of a selected file at runtime. So that i can pass it to the python script. – Asif Hussain Sep 04 '20 at 11:13