However, an "accept" validator, to be used like this:
<component id="file" type="Upload">
<binding name="file" value="file"/>
<binding name="displayName" value="message:filename"/>
<binding name="validators" value="validators:accept=gif-jpeg-other"/>
</component>
was described in this list:
http://article.gmane.org/gmane.comp.java.tapestry.user/26835
http://article.gmane.org/gmane.comp.java.tapestry.user/26841
>From Nick Westgate <[EMAIL PROTECTED]>:
> Hi Vincent.
>
> This has nothing to do with Tapestry.
>
> In general it is difficult or impossible because of browsers.
> Google for it.
>
> E.g.
> http://www.cs.tut.fi/~jkorpela/forms/file.html#filter
>
> Cheers,
> Nick.
>
>
> Vincent wrote:
> > Is there any news about this?
> >
> > On 2/28/06, Vincent <[EMAIL PROTECTED]> wrote:
> >
> >>e.g. I only like to choose all the file end with .jpg , the other
> >>format will be ignored.
> >>How can I archive this?
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]