What web server are you using for testing?   It's been a while, but I
remember having to configure 3 different file-size limits in our appliance.
We're using Apache->Tomcat forwarding though, so I'm not sure where things
would be for you necessarily.

Anyway, I remember the seeing the same issue, and tweaking a new-found
parameter that did the trick.  I'll try to find out from a coworker which
one that was.

- Josh

On Tue, Jul 14, 2009 at 8:20 AM, Timothy Perrett <timo...@getintheloop.eu>wrote:

>
> Guys,
>
> Im trying to test this new upload progress widget i've written and the
> obvious way to do that is use a big upload locally so it takes time
> and i can see it working. I configured my maxMimeSize to this:
>
> LiftRules.maxMimeSize = 30 * 1024 * 1024
>
> And I get the following error message when I upload a file that is
> larger than 8mb (small uploads work fine) - see below for exception...
>
> Message: org.apache.commons.fileupload.FileUploadBase
> $FileUploadIOException
>        org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl
> $FileItemStreamImpl$1.raiseError(FileUploadBase.java:753)
>        org.apache.commons.fileupload.util.LimitedInputStream.checkLimit
> (LimitedInputStream.java:71)
>        org.apache.commons.fileupload.util.LimitedInputStream.read
> (LimitedInputStream.java:128)
>        java.io.FilterInputStream.read(FilterInputStream.java:90)
>        net.liftweb.http.OnDiskFileParamHolder$.doUpload$1(Req.scala:74)
>        net.liftweb.http.OnDiskFileParamHolder$.apply(Req.scala:82)
>        eu.getintheloop.example.lib.UploadProgress$$anonfun$init$2.apply
> (UploadProgress.scala:19)
>        eu.getintheloop.example.lib.UploadProgress$$anonfun$init$2.apply
> (UploadProgress.scala:18)
>        net.liftweb.http.Req$$anonfun$3$$anon$1.next(Req.scala:157)
>        net.liftweb.http.Req$$anonfun$3$$anon$1.next(Req.scala:144)
>        scala.Iterator$class.toList(Iterator.scala:696)
>        net.liftweb.http.Req$$anonfun$3$$anon$1.toList(Req.scala:144)
>        net.liftweb.http.Req$$anonfun$3.apply(Req.scala:159)
>        net.liftweb.http.Req$$anonfun$3.apply(Req.scala:139)
>        net.liftweb.http.Req.x$16(Req.scala:328)
>        net.liftweb.http.Req.uploadedFiles(Req.scala:327)
>        net.liftweb.http.LiftSession.runParams(LiftSession.scala:330)
>        net.liftweb.http.LiftSession.processRequest(LiftSession.scala:558)
>        net.liftweb.http.LiftServlet.net$liftweb$http$LiftServlet$
> $dispatchStatefulRequest(LiftServlet.scala:239)
>        net.liftweb.http.LiftServlet$$anonfun$2.apply(LiftServlet.scala:155)
>        net.liftweb.http.LiftServlet$$anonfun$2.apply(LiftServlet.scala:155)
>        net.liftweb.http.S$.net$liftweb$http$S$$wrapQuery(S.scala:909)
>
> Caught and thrown by:
> Message: org.apache.commons.fileupload.FileUploadBase
> $FileSizeLimitExceededException: The field F1052029947622ETF exceeds
> its maximum permitted  size of 7340032 characters.
>        org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl
> $FileItemStreamImpl$1.raiseError(FileUploadBase.java:746)
>        org.apache.commons.fileupload.util.LimitedInputStream.checkLimit
> (LimitedInputStream.java:71)
>        org.apache.commons.fileupload.util.LimitedInputStream.read
> (LimitedInputStream.java:128)
>        java.io.FilterInputStream.read(FilterInputStream.java:90)
>        net.liftweb.http.OnDiskFileParamHolder$.doUpload$1(Req.scala:74)
>        net.liftweb.http.OnDiskFileParamHolder$.apply(Req.scala:82)
>        eu.getintheloop.example.lib.UploadProgress$$anonfun$init$2.apply
> (UploadProgress.scala:19)
>        eu.getintheloop.example.lib.UploadProgress$$anonfun$init$2.apply
> (UploadProgress.scala:18)
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to