开发者

file upload in JSF

开发者 https://www.devze.com 2022-12-16 13:57 出处:网络
I am using tomahawk 1.1.9 fileupload component t:inputFileUpload It displays a placeholder for the file that gets uploaded and a bu开发者_如何学运维tton that has label \"Browse\".

I am using tomahawk 1.1.9 fileupload component t:inputFileUpload

It displays a placeholder for the file that gets uploaded and a bu开发者_如何学运维tton that has label "Browse".

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消