I have not used the extensionsFilter I don't know what it is. But you can have all other fields in the same form.
-Srikanth -----Original Message----- From: mfaine [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 10:17 AM To: MyFaces Discussion Subject: RE: inputFileUpload - accept multiple file formats On Fri, 18 Feb 2005 09:28:17 -0500, "Srikanth Madarapu" <[EMAIL PROTECTED]> wrote : > 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> > > Yes, the form is multipart/form-data but I have extensionsFilter not MulitpartFilter aren't they the same thing? I'm considering moving this form from a page with just the upload controls to a page with other form fields, will having multipart/form-data for the form affect the other fields or (can/should) I have two forms on the same page, one for the upload, one for the other form fields? Thanks, -Mark > > -----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 > > > >

