have you added this enctype="multipart/form-data" to your form ? Also there is
a filter that need to be setup, if you have not already done so....
<filter>
<filter-name>multipartFilter</filter-name>
<filter-class>net.sourceforge.myfaces.custom.fileupload.MultipartFilter</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>10m</param-value>
<description>....
</description>
</init-param>
</filter>
-----Original Message-----
From: mfaine [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 9:08 AM
To: MyFaces Discussion
Subject: x:inputFileUpload - accept multiple file formats
Is it possible to accept multiple mime types. What is the format? Should
this work?
<x:inputFileUpload id="fileupload"
accept="image/*,application/pdf" ...
At the moment I can't even get it to accept only one mime type so I'm
obviously doing something wrong:
<x:inputFileUpload id="fileupload"
accept="application/pdf" ...
The above still alows any mime type to be uploaded.
Thanks,
-Mark