Jump to content

Open file dialog


Guest 2fast4murk

Recommended Posts

Guest 2fast4murk

I'm currently working with forms and want to add a 'browse' button to upload a file from your (local) harddisk. I've used the <input type=file> option but that way I can't change the caption on the button. The thing I want to do is create a custom 'browse' button from which I can edit the caption and after clicking opens a similar dialog to the one from <input type=file>. How can I do this?

Link to comment
Share on other sites

I'm currently working with forms and want to add a 'browse' button to upload a file from your (local) harddisk. I've used the <input type=file> option but that way I can't change the caption on the button. The thing I want to do is create a custom 'browse' button from which I can edit the caption and after clicking opens a similar dialog to the one from <input type=file>. How can I do this?

You can do it only by hide original file-input field and then create visible "fake input field" with text input and button or image.Look: http://www.quirksmode.org/dom/inputfile.html
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...