I searched quite a lot for an answer on the web and found nothing.
I don't want to set the path myself i just wanna know where my file goes after been downloaded by the user.
That is not possible.
Imagine that one stores his downloads at
Browsers are deliberately isolated from the local filesystem in order to prevent scripting attacks. You cannot get this information.
const downloadsFolder = require('downloads-folder'); console.log(downloadsFolder());
$ npm install downloads-folder
wrong answers. you can do it no problem with IE. and it is very valid use case if you do intranet web development for things like production of products/workflow that requires files.... ...but does not work with chrome.
<input type="hidden" id="steel_that_path" name="steel_that_path" /> <input type="file" id="this one you use to upload file" name="this one you use to upload file" accept="application/octet-stream" onBlur="document.getElementById('steel_that_path').value=this.value;"/>
©2020 All rights reserved.