Isha Dubey
Isha Dubey

Reputation: 31

file upload in JSF

I am using tomahawk 1.1.9 fileupload component t:inputFileUpload

It displays a placeholder for the file that gets uploaded and a button that has label "Browse".

I want to hide that Place holder and want to give my own label to the button instead of "Browse".

Upvotes: 1

Views: 1721

Answers (1)

user7094
user7094

Reputation:

I don't think this is going to be possible without some fairly ugly CSS hacking. The file input box is there for a good reason: security. If it could be controlled (or removed) using JavaScript, users could potentially have sensitive files uploaded without their knowledge or consent.

The input file box is a way of them having some confidence that what they are uploading is only the file they actually want to upload.

The only thing I have seen done successfully with input file boxes is styling them - have a look at this and this for examples.

Upvotes: 1

Related Questions