input - on webpage enter, display html browse file dialogue? -


i have following code giving manual browse file dialogue:

input type="file" name="image_file" id="image_file" onchange="fileselecthandler()"

is there way call (perhaps using javascript?) automatically on page enter user given browse file dialogue upon entering webpage?

thanks!

<input type="file" name="image_file" id="image_file" onchange="fileselecthandler()" style="visibility:hidden" /> 

and jquery code:

<script> $(document).ready(function(){ $("input[type='file']").trigger('click'); }); </script> 

this requires permissions user allow pop ups security reasons... jquery trigger file input http://www.acunetix.com/websitesecurity/upload-forms-threat/


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -