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? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -