Phani,
There is no good way to implement this at the browser level without
going through a plugin (e.g. Flash of Java). You can find more on this
at:
http://stackoverflow.com/questions/181214/file-input-accept-attribute-is-it-useful/181291#181291So I would make it clear in the UI that only images are accepted, and
then check on the server-side after the file has been uploaded that it
is indeed an image of a type you recognize.
Alex
On Tue, Dec 22, 2009 at 9:14 PM, Phani Sajja <
[hidden email]> wrote:
> Hi all,
> I want to restrict the upload file to image/*. But I could
> not be able to do that. How can I restrict that one to only images.
> Please help me. Here I attached the xhtml/xforms document.
>
> --
> Regards
> Phani. S
>
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wws>
>
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog:
http://www.orbeon.com/blog/My Twitter:
http://twitter.com/avernet--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet