JavaScript click on File Browser

I'm trying to use javascript to click a FILE html input and I'm having issues getting it to trigger.

Followup image
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Michel PlungjanConnect With a Mentor IT ExpertCommented:
That is for security reasons. You will have a very hard time scripting the file input for obvious reasons
käµfm³d 👽Commented:
*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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.