Reputation: 530
Is it possible to auto open the file input on IE?
If you do
$(input).click();
IE doesn't submit the form. Maybe i can get its value somehow?
$(input).val()
Doesnt work, this will give you fakepath.
Any Idea about this? Cloning does also not work. Another possibility woudl be, to place the open button somwhere else on the page, without the input box for the path.
Is anything like this possible somehow? I have some img's and if you click on these images a file browser should pop up. Maybe theres some plugin i could use? Anything?
Trying out stuff for hours now.
Upvotes: 1
Views: 793
Reputation: 2632
You can't get the path for security purposes .. but you can use a workaround solution to hide the traditional input element behind your custom design , like the following example http://www.quirksmode.org/dom/inputfile.html
Upvotes: 0