Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12171

how to get full path of file in web browser?

$
0
0

I use file tag to support file selection in javascript and html.

For security limitation, I just get the file name and some information of file like size...

But I want to get the full path of the file.

How can I do that?

I checked answers like below:

*For security reasons browsers do not allow this, i.e. JavaScript in browser has no access to the File System, however using HTML5 File API, only Firefox provides a mozFullPath property, but if you try to get the value it returns an empty string:

$('input[type=file]').change(function () {    console.log(this.files[0].mozFullPath);});*

But I want to use Chrome support.

Command to get the full path of file.


Viewing all articles
Browse latest Browse all 12171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>