W3C home > Mailing lists > Public > www-forms@w3.org > February 2009

Re: treating (multiple) attached images

From: Jabba Laci <jabba.laci@gmail.com>
Date: Wed, 11 Feb 2009 15:47:33 -0500
Message-ID: <310fbb00902111247w248d3da8x20e70ab7ecead6cb@mail.gmail.com>
To: xforms <www-forms@w3.org>

> There's an example in the XForms spec:
>
>        <upload ref="mail/attachment" mediatype="image/*">
>          <label>Select image:</label>
>          <filename ref="@filename" />
>          <mediatype ref="@mediatype" />
>        </upload>
>
> The mediatype for jpg is image/jpeg, so use mediatype="image/jpeg"

Hi,

Thanks for the info. Unfortunately it doesn't work perfectly in the
Mozilla plugin. If I specify "image/jpeg", then it will only allow
*.jpeg files, but not *.jpg (without 'e'). But capturing the mediatype
with
<mediatype ref="@mediatype" />
works well, so I will rather verify this part on the server side.

Thanks,

Laszlo
Received on Wednesday, 11 February 2009 20:48:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:15 GMT