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 8047793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:13:01+00:00 2026-06-05T06:13:01+00:00

I used below code for customize the file input type, <form class=example action=#> <!–<input

  • 0

I used below code for customize the file input type,

<form class="example" action="#">
<!--<input type="file" class="required-entry filename file" name="filename[]" />-->
<div class="fileinputs">
    <input type="file" class="file hidden">
<div class="fakefile"><input><img src="ravi/images/button_select.gif" /></div></div>
</form>

style.css

<style type="text/css">
    body{
        color: black;
        font-family: arial;
        font-size: 13px;
    }
form.example input {
    background: url('ravi/images/input_boxes.gif') no-repeat 0 -58px;
    border: none;
    width: 241px;
    height: 20px;
    padding-left: 3px;
    padding-top: 3px;
}

form.example input:focus {
    background-color: transparent;
}

form.example div.fileinputs {
    position: relative;
    height: 30px;
    width: 300px;
}

form.example input.file {
    width: 300px;
    margin: 0;
}

form.example input.file.hidden {
    position: relative;
    text-align: right;
    -moz-opacity:0 ;
    filter:alpha(opacity: 0);
    opacity: 0;
    z-index: 2;
}

form.example div.fakefile {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 350px;
    padding: 0;
    margin: 0;
    z-index: 1;
    line-height: 90%;
}

form.example div.fakefile input {
    margin-bottom: 5px;
    margin-left: 0;
}

</style>

and the page display like below,

enter image description here

when i click select button the browse folder appears and then i select the image file.but in input filed the uploaded image caption not displayed..

i integrated this one from http://www.quirksmode.org/dom/inputfile.html

what is the issue?

  • 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-05T06:13:03+00:00Added an answer on June 5, 2026 at 6:13 am

    You need to add JavaScript code as explained on the page you cited.

    If the code you use in testing consists essentially of the HTML and CSS code that you posted, then you are using the “pure CSS” version of the approach described on the page. In the numbered list that explains the basic version, which uses JavaScript too, item 5 describes the feature that is missing from the “pure CSS” version. And that feature is “When the user has selected a file, the visible, fake input field should show the correct path to this file”.

    (It won’t actually show the correct path. For security reasons, browsers don’t disclose the real path. But they do let you show the filename part.)

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

Sidebar

Related Questions

I have created a Sub-Class of NSOutlineView and used the below code to make
I have used below code to attach quckboook events // Subscribe to UI events...
I used the below code to upload multiple files. Its working absolutely fine but
I had used the below code to get the row index of the UIPickerView
I have some problem with my cfml website. I have used the below code
My below code works fine and is used to populate a <select> item with
I used the code below to create a TableRow with content dynamically. It works
Code below is used to save PostgreSql database backup from browser in Apache Mono
I have used the code below to read rfid tag values. try { if
I am having a very specific problem in JQuery The code below is used

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.