Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7915487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:28:15+00:00 2026-06-03T14:28:15+00:00

I want to auto select a file through File input tag < input type=file

  • 0

I want to auto select a file through
File input tag < input type=file > via java script ?

I know this is security issue and not allowed normally.

But is this allowed through extensions or in any form in any browser,

because i m working on a automation project
which requires posting of a form with multiple values has
upload feature which uploads file first and then posts form(kijiji.ca)

and need this to be done.

need not to be browser specific any browser which have automation capability like chrome, Fire fox

Further reuquirement

Hi Wladimir, i got it working as Wladimir suggested in Extension scope.

Can u tell me if i need to auto select multiple files what value should i set.

I tried setting this

input.value = '"D:\Temp\step1.jpg" "D:\Temp\step2.jpg" "D:\Temp\step3.jpg"'

but it don’t accept it. Though i can set it to single image and it takes it..

thanks..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:28:17+00:00Added an answer on June 3, 2026 at 2:28 pm

    Firefox extensions are allowed to set input.value property so something like this will work:

    input.value = "c:\\autoexec.bat";
    input.form.submit();
    

    However, when using Add-on SDK a content script will likely not have the necessary privileges (needs to be tested). In this case one would need to use chrome authority and access the web page directly rather than via a content script.

    As to Chrome, extensions there don’t have access to the file system – so the security restrictions that apply to web pages are applying to extensions as well. Allowing extensions to set the value of a file upload widget would be a security issue there. So I’m pretty sure that it isn’t possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to enable auto update script in flex3. i am using below code
I want select auto radio button with Greasemonkey. But I want select radio with
I want to create one application which send email with attachment(select file from SD
Hi i have the following auto-suggestion box set up and i want to select
I'm trying to do a Greasemonkey script to auto-select a radio button. The poll
I have a situation where I want a user to select a file, then
I want to auto gen some DTOs from some of my existing objects, I
I have a simple form on a page and I want to auto submit
I have a number stored in an NSMutableString instance which I want to auto
i am new to smartGWT . i want to create auto login using j_security_check

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.