I'm having problems with uploading files with mozilla 0.99 and struts. 
 Rather, the problem is when the file is optional and the user chooses 
*not* to upload one.  A partial stack trace below:

Root cause:
java.lang.IllegalArgumentException: argument type mismatch
        at java.lang.reflect.Method.invoke(Native Method)
        at 
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.
java:988)
        at 
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.
java:904)
        at 
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:9
32)
        at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
        at 
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772)
        at 
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.
java:2061)
        at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:156
3)
        at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)

There are other input fields in the form, and I am using the struts html 
tags for all fields including the file.  The form enctype is set 
correctly, and the code works flawlessly with IE as the browser.

I have found this bug against mozilla:
http://bugzilla.mozilla.org/show_bug.cgi?id=132069

To summarize, they are not sending the filename in the 
multipart/form-data is no file is present.  Is struts assuming the 
filename to always be there?

Rich


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to