struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)
Date Fri, 25 Sep 2009 19:16:42 GMT
hisameer wrote:
> Thanks for your reply. I tried to put the method public void
> setUploadFile(File file) but no success, file is still null in the action.

Are the other two setters (ContentType, FileName) called?
Do you have the appropriate interceptor in place for this action?
I believe there's a .jar required for file upload that isn't part of the 
standard struts distribution...do you have that in WEB-INF/lib/?

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message