Is there a way for enabling file upload via file path?
The default HTML file upload control displays a disabled textbox and a button. Is it possible via JS or something to upload a file when the user pastes the path to the file into a textbox?
This webpage is within a corporate intranet.
No, such thing is not possible in web application using ordinary HTML/JavaScript - period.
The one and only way for user to choose file is via the file dialog opened by clicking the browse button of the <input type="file" /> element.
The only shortcut possible is that JS can open the file dialog automatically, but still - that's the only way for user to choose what file to upload.
There are some small possibilities to do that within a trusted network. Not exactly the same, but still a very similar question: Local file access with javascript
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With