Jump to content

input type file


inungh

Recommended Posts

I have following code to have user upload the file.

It has a button choose file on the left and it have text for file name when user select the file.

I want to the button on the the right and show a plus icon or has caption "Browser" on the button and to have a text box to have file name store in the text box. Are there any attribute or property to configure this or I need Javascript to configure my controls.

 

Your help and information is great appreciated,

 

Regards,

 

Iccsi,

 

 

<input type="file" name="file_path" id="Browser" value="Browser">

Link to comment
Share on other sites

For the HTML see...

 

http://www.w3schools.com/tags/tag_input.asp

 

http://www.w3schools.com/tags/att_input_type.asp

 

It is possible to avoid Javascript as you can see here...

 

http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_file

 

However you aren't going to upload a file without server-side scripts. Do you know Php?

 

http://www.w3schools.com/php/default.asp

Edited by davej
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...