3

I need to browse to a folder to get the directory name by clicking a button, is there any way of getting this? I was thinking I could achieve this by using <input type="file" />

1
  • If you want server side answers, add nodejs and fileserver to your tags. Commented Apr 3, 2016 at 21:46

1 Answer 1

3

For security reasons you cant. You can get just the file name, the rest is handled by the browser.

Answered here https://stackoverflow.com/a/15201258/1248388

More documentation on the File API https://developer.mozilla.org/en/docs/Using_files_from_web_applications

Sign up to request clarification or add additional context in comments.

2 Comments

Well, I have a issue that i want to read all csv/xls file from a folder and then cut paste to another folder. For this reason i need the path of From Folder and To Folder. I can do it directly texting but if there any way to browse it by a button click from my pc or any pc connected by network server with mine?
Or is there any way from server side i get the full folder path (N.B. need folder path actually not the file) ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.