javascript - How to choose a file and save the path's file via JS -


i want click on button open window , choose file. i'm using code choosing:

<button onclick="document.getelementbyid('file-input').click();">open</button> <input id="file-input" type="file" name="name" style="display: none;" /> 

how can save path? (for example c:\temp\song.mp3)

i dont need download file. it's local file.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -