Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use nicer button/link for file selection, autoselect #10

Open
mfrederickson opened this issue Sep 13, 2014 · 1 comment
Open

use nicer button/link for file selection, autoselect #10

mfrederickson opened this issue Sep 13, 2014 · 1 comment

Comments

@mfrederickson
Copy link
Contributor

Using this information below, perhaps you could get rid of the default file upload button, and optionally trigger the file selection to come up initially. From https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications#Using_hidden_file_input_elements_using_the_click()_method

Using hidden file input elements using the click() method

Starting in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1), you can hide the admittedly ugly file element and present your own interface for opening the file picker and displaying which file or files the user has selected. You can do this by styling the input element with display:none and calling the click() method on the element.

image

@awojtczyk
Copy link

Please see: #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants