I suppose you could try java-script to listen for key presses and handle it yourself to revert the value or, if possible, abort the key press. I am not 100% sure you can do this for security reasons though. If you could script the file upload, then on submit, you could easily change the file to something restricted (like "/etc/passwd" on a linux system) which would not be in the user's interest. I think you may be stuck if that is the case, because the browser would prevent you from doing anything to the control to avoid security problems.

-Andrew

On 2/1/06, Ravi Gidwani <[EMAIL PROTECTED]> wrote:
Hi all:
        I have FileUpload component on a page. What i want to do is to make the text field of this FileUpload component read-Only so that the user cant type in the any garbage values, but should be allowed to select a file only using the browse button.

    but when i make this component readonly buy making the 'readonly' attribute 'true', the browse button is disabled :(

I am using the Nightly build from 10-Jan-2006.

Any help would be really appreciated

~Ravi




Reply via email to