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

  • Home
  • SEARCH
  • 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 6612079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:03:10+00:00 2026-05-25T20:03:10+00:00

<input type=file/> can give an option to select the file from local machine &

  • 0

<input type="file"/> can give an option to select the file from local machine & upload further.
But i wanted a customized button which enables to open the file browser dialog & further upload by clicking on customized button too. please see below the example. Let us assume

<input type="file" id="file-upload"  />  /* file upload */
<input type="button" id="customized"  />  /* simple button */ 

following is the jQuery fn & it enables the button to works as upload file button.

$(function(){
    $('#customized').click(function() {  /* cutomized button clicked */
               $('#file-upload').click();  /* Now file upload button auto clicked & file browser dialog opens. */

     });
});

above js works on Windows machine while it doesn't work on Linux, Why? also i know OS has nothing to do and Browser is responsible for this. Please help me to sort out this problem
Windows – – > mozila IE chrome : works, please check example

Linux not working on any browser

  • 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-05-25T20:03:10+00:00Added an answer on May 25, 2026 at 8:03 pm

    This is more to do with the browser version rather than the OS or Browser make.

    I believe this would also fail in Opera on Windows – as some browsers prevent the firing of events on a file-type input.

    You could do this old CSS trick instead – http://www.quirksmode.org/dom/inputfile.html

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

Sidebar

Related Questions

Is there a simple way to upload a single file through HTML input type
Anybody here can help me with this Input file Type Reference WIN 00001 WIN
Can you submit a form via AJAX that has a file type input? I
How can know, if select( Choice Or Browse... ) file in input:file run some
How can I remove the value for an input of type file which is
I have an input of type text , from which I have already entered
I use this code to upload image files in xammp server: <?php if ((($_FILES[file][type]
I have a problem in PHP. I am using <input type=file> to get the
I am trying to find out how to upload a file from a web
I am trying to to trigger a change event in a input type file

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.