Jump to content

Styled input file button no longer shows chosen file


Recommended Posts

I'm using an Upload Script, and I've been working on trying to style the 'Choose File Button' (input file button)
which was a challenge to be styled for multiple browsers, but finally works with Google, IE and FF.
 
However, now that I've successfully styled the input file button, when a file is now chosen, the chosen file name no longer appears, prior to Submit.
 
I've attached an image of the code changes I made, plus some CSS styling, and this addition:
 
label input[type="file"] {
    position: fixed;
    top: -1000px;

Any suggestions/ideas/remedy on how to get the chosen file to show (or something to show an action has taken place) will be appreciated

post-20454-0-21615100-1405917399_thumb.png

Edited by Chrisj

It will be very challenging to determine your issue without knowing the context, via the code itself or even a demo. I assume you mean that once you've chosen a file, the area in which is supposed to reflect the chosen file name does not show it?

 

Does the file name area respond at all?
Does the file still upload despite the lack of reaction via the file name area?

Does it work when you remove the CSS?

 

You have to think kinda like this in order to determine what the problem is exactly and then find the workaround, or just correct the issue all together.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.