org.apache.struts.util.RequestUtils has the following at lines 408-415: Boolean maxLengthExceeded = (Boolean) request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
if ((maxLengthExceeded != null) && (maxLengthExceeded.booleanValue())) { ((ActionForm) bean).setMultipartRequestHandler(multipartHandler); return; } Why would it just return? Shouldn't it throw some kind of exception? When my action is called, I have no way to know that the max file size was exceeded, and my request params are empty, so the correct DispatchAction method isn't being called. Has anyone else seen this behavior? ---------------------------------------------------------------------------------------------------------------- Frank Russo Developer ▪ Financial Services Division SAS® … THE POWER TO KNOW® -----Original Message----- From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On Behalf Of Paul Benedict Sent: Wednesday, July 08, 2009 9:16 PM To: Struts Users Mailing List Subject: Re: How is the max file size controlled for file uploads in Struts 1.3.8? Struts 1.3 does control when the file upload size hits a limit. The <controller> element has a @maxFileSize attribute: http://applegrew.blogspot.com/2008/10/struts-1-config-file-reference.html Paul 2009/7/8 Martin Gainty <mgai...@hotmail.com>: > > FileUploadInterceptor has a setMaximumSize(Long size) method > > http://struts.apache.org/2.1.2/struts2-core/apidocs/org/apache/struts2/interceptor/FileUploadInterceptor.html > > hth > 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. > > > > >> From: frank.ru...@sas.com >> To: user@struts.apache.org >> Date: Wed, 8 Jul 2009 16:39:17 -0400 >> Subject: How is the max file size controlled for file uploads in Struts >> 1.3.8? >> >> Can it be changed? >> >> ---------------------------------------------------------------------------------------------------------------- >> Frank Russo >> Developer ▪ Financial Services Division >> SAS® … THE POWER TO KNOW® >> >> > > _________________________________________________________________ > Windows Live™: Keep your life in sync. > http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org