The problem is with the browser, not the tag.  The x:inputFileUpload tag generates an HTML input tag with type="file".  If you use the accept attribute, it will simply carry that attribute through to the generated HTML.

The problem is that Internet Explorer completely ignores this attribute.  I honestly don't know whether Firefox does or not, and Googling hasn't told me one way or the other, but it would be easy enough to test.

-Matt

On 13 May 2005 17:30:59 -0000, mfaine <[EMAIL PROTECTED]> wrote:
In my x:inputFileUpload tag the accept attribute does not work. Any file is
accepted.

<x:inputFileUpload id="file" value="#{nasaGeneralBean.upFile}"
storage="file" required="true" accept="application/pdf" immediate="true"/>

I could not find this on the bug list so I'm wondering if I am doing
something wrong, surely if this were a bug it would have been found by now.

Thanks,
-Mark

Reply via email to