tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie Jackson <jamieja...@gmail.com>
Subject Re: maxFileSize
Date Fri, 02 Oct 2015 15:23:52 GMT
On Thu, Oct 1, 2015 at 5:25 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Jamie,
>
> On 10/1/15 4:47 PM, Jamie Jackson wrote:
> > Point taken, Christopher. I did just discover that I'm actually
> > running 7.0.59, which isn't as egregious as 7.0.20. (I had got the
> > version information from an unreliable source before, apparently.)
>
> That version is *much* better than 7.0.20. But always nice to upgrade
> to latest if you can afford the (minimal) time to do it.
>
> As for your original question...
>
> >>>> On Thu, Oct 1, 2015 at 1:22 PM, Jamie Jackson
> >>>> <jamiejaxon@gmail.com> wrote:
> >>>>
> >>>>> Hi Folks,
> >>>>>
> >>>>> My question has a few facets:
> >>>>>
> >>>>>
> >>>>> 1. How do you get the active maxFileSize value from Tomcat?
> >>>>> (Is it possible in, say, jConsole?) 2. Is the default
> >>>>> value's ("-1"
> >>>>> <https://tomcat.apache.org/tomcat-7.0-doc/servletapi/javax/servlet
> /an
> >
> >>>>>
> notation/MultipartConfig.html#maxFileSize()>)
> >>>>> meaning documented anywhere? My guess is that it means
> >>>>> "unlimited," but that's just a guess. (If it's not
> >>>>> documented, I think it should be.) 3. How do people know
> >>>>> how to translate these API items to XML (in web.xml)? I
> >>>>> know I can find the answer for maxFileSize on
> >>>>> StackOverflow, but it seems like there should be general
> >>>>> guidance on how to make that leap (if there isn't specific
> >>>>> guidance for those configurations in the official
> >>>>> documentation).
>
> Are you trying to get this value from application code using standard
> APIs, or are you trying to locate the value from within something like
> a Valve, which is Tomcat-specific?
>

*Anywhere* is fine with me.

I'm having some trouble with file uploads in an app. I'm asking about it in
the language's (Lucee's) forums, and people seem to be hung up on the idea
that it's a Tomcat setting (specifically this maxFileSize setting) --
they're claiming it's got a default of 50MB that I need to increase, but
I'm seeing no evidence of such a default. (There are apps in the wild,
including the manager app, which have a 50MB limit *specified in web.xml*,
but I can find no evidence that Tomcat, itself, has such a default.)


>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJWDaTcAAoJEBzwKT+lPKRYyyIQAIiUZNN7ydVttjkn3tnOdh6j
> zEN9j/tuSRSr94MbERY2Jbi+EwwClOfMswn+J8EaxaRH7DN1TKmnf6x74G4RXiH7
> UhZAbCyVcfwQeL3YdLLO4xyEUm58r7iTgp9kXvV1pShCMUCre8O3+Xa+c6l+5Jef
> K9u2z5ZtlESkj7QC0QPxFFDjf+ZFt/kpiyglfODAs/WR9lDZKAmlPkT1O6vyEAd2
> GzD/uzROTTIh+GTlujoj7Ydl95DmW9QigWz9Yu5wpsRpHtsfo09f8zEPYhLY4EzI
> d4wC6d0OesrVPHZ+f++WNJTRN7j5+3l8fmSLmY1hs6avvhdMeBpEnj7pCTN4L4+y
> NLmKFSPuxXONBFMcQ9xmeKg7HN1Tez0iL9TN2uvIG6s035d/HRhlXzPbpm+b9hor
> dOC+J7QaNckQSdOELzPuwh+ozvOHNBg9W+Xi0PRA+hBJhB6c4zdZRc1I7SJAEi15
> KrY+aIZrELj/Xnb5ZfedDnavBSkkUsY7hvoou23kw+B/z+DiawSu/o9wOt32xQpw
> tYaaIk2uRjzfloii3hHSGp/85vRyf29FiglMv56AHw0WDpZi/ufCM4PV82J+Idl0
> PC1Iwx60ED96aImkJkbOaH9/dg58fkLVBaDAcIhhXFs03yYyB49KiuqTyEtNZ1AK
> ld4Sd7M46dBUk5G20YHl
> =WUal
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message