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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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