Sameer-

which interceptor 
<interceptor-ref name="validation" />
<interceptor-ref name="workflow" /> 
produced the null fileUpload?
or is it both in combination?
does the error occur for all uploaded image types when these 2 interceptors are 
configured in
image/jpeg,image/gif,image/png,image/bmp,image.jpg 
?

Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Mon, 28 Sep 2009 09:51:29 -0700
> From: cool_sameer_fo...@yahoo.com
> To: user@struts.apache.org
> Subject: Re: File upload issue with Struts 2.1.6 (uploaded file is always 
> null in action)
> 
> 
> Hi Dave,
> 
> Thanks for pointing out the typo in the code. The issue was not that. After
> scratching my head off for a week the issue was in the code:
> <interceptor-ref name="basicStack" />
>                         <interceptor-ref name="fileUpload">
>                                
> image/jpeg,image/gif,image/png,image/bmp,image.jpg
>                         </interceptor-ref>
>                         <interceptor-ref name="validation" />
>                         <interceptor-ref name="workflow" /> 
> 
> for some reason these interceptors were not behaving correctly and thus I
> was getting the null file in my action class. I removed those interceptors
> and the file was not null.
> 
> Thanks everybody for the help.I read these interceptor in the struts2
> website but I think they should have tested it before adding the example:-p
> there. No issue!
> 
> 
> DNewfield wrote:
> > 
> > hisameer wrote:
> >> Well, I dont see any typo here.
> > 
> > image/jpg, not image.jpg
> > 
> > And I assume the email process stripped out the '' and '' parts?
> > 
> > -Dale
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/File-upload-issue-with-Struts-2.1.6-%28uploaded-file-is-always-null-in-action%29-tp25614736p25648913.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
                                          
_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

Reply via email to