I need to get Folderpath
for selected Folder from my local System using HTML5/JS/Jquery or anything except NODEJS using file browser.
Currently i did using Node-electron but it cause an error in centos (i.e GCC compiler issue it affects other applications)
So i decided to fetch from frontend itself. but i wont able to get folder path currently i am getting relative paths of files presented inside selected folder.
Check this snippet,
$('input[type=file]').change(function () {
console.log(this.files);
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<input type="file" id="fileUpload" webkitdirectory directory multiple>
I want to get basepath for current selected folder.
eg: if i select Folder called Employee
it should give,
/home/user/Downloads/Employee
is there anyway to get this either using jquery?