"[EMAIL PROTECTED]" wrote : 
  | We recommend that you don't use the Tomahawk components.  If you use the 
file upload control provided by Seam then you get all the things you mentioned 
(file name, content type, etc).

Shane,
Sorry but could you detail a bit more about file upload control provided by 
Seam?
Do you mean something like this:
<s:fileUpload data="#{uploadAction.uploadedFile}" />
(..where uploadedFile is component of type 
org.apache.myfaces.custom.fileupload.UploadedFile)

I tried this but the result is the same - null uploadedFile inside non-null 
uploadBean.

However, if I specify uploadedFile to be byte[], it will work because it 
uploads byte stream instead of UploadedFile class type.
With byte[], I can only get the content and the size but not other meta 
attributes of the file.

Is there an example of how to use Seam's upload somewhere that I can take a 
look?

Thanks,
landrew


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049933#4049933

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049933
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to