Reputation: 9657
Is it possible to emulate <input type="file">
and get a file browser using a link and jQuery?
I've tried to find a tutorial to do this, but a search on google doesn't show me any answers. Any help will be most appreciated.
Upvotes: 2
Views: 604
Reputation: 41549
I've achieved similar in the past but its a bit of a hack:
When the user thinks they're clicking on the link, they will actually click the browse button.
Its horrible, but I don't know of another way.
Upvotes: 0
Reputation: 9916
Short answer: no.
file
inputs let to browse your disk, etc to select a file. This can't be emulated with any other standard HTML/JS technique.
Upvotes: 2