This content has been marked as final.
Show 4 replies
-
1. Re: rich:fileUpload contentType
andrei_exadel May 15, 2008 6:35 AM (in response to jermaioncer)Please see example how to get content type:
UploadItem item = UploadEvent.getUploadItem();
item.getContentType(); -
2. Re: rich:fileUpload contentType
jermaioncer May 15, 2008 10:59 AM (in response to jermaioncer)this method: getContentType()
is not a method of org.richfaces.model.UploadItem -
3. Re: rich:fileUpload contentType
andrei_exadel May 15, 2008 11:12 AM (in response to jermaioncer)The method appeared in 3.2.1 version.
-
4. Re: rich:fileUpload contentType
rgonzalezf May 15, 2008 6:09 PM (in response to jermaioncer)"jermaioncer" wrote:
this method: getContentType()
is not a method of org.richfaces.model.UploadItem
Until the method getContentType appears in version 3.2.1, use this:UploadItem uploadItem = uploadEvent.getUploadItem(); new javax.activation.MimetypesFileTypeMap().getContentType(new java.io.File(uploadItem.getFileName())) )