Solved

JavaScript click on File Browser

Posted on 2014-02-16
2
243 Views
Last Modified: 2014-02-19
I'm trying to use javascript to click a FILE html input and I'm having issues getting it to trigger.

http://screencast.com/t/BMTOpuNkwCsX

Followup image
http://screencast.com/t/5k1V0hxj
0
Comment
Question by:yewnix
2 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 39864182
That is for security reasons. You will have a very hard time scripting the file input for obvious reasons
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39865971
*no points*

Just as an example to what mplungjan mentions, think about the implications of what could happen if such functionality were available, and I wrote some Javascript that would upload any file named "passwords*" from a user's machine.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question