Never mind, found the setting:
LiftRules.maxMimeSize = 25 * 1024 * 1024
LiftRules.maxMimeFileSize = 25 * 1024 * 1024
On Dec 6, 10:48 pm, DMB <[email protected]> wrote:
> I'm getting this one in M7 when trying to upload a 8MB image file.
> Smaller files work just fine. It would empirically seem that I'm
> running against some kind of limit somewhere. If that's the case, is
> there a way to raise the limit?
>
> 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.util.IoHelpers$class.readOnce$2(IOHelpers.scala:92)
> net.liftweb.util.IoHelpers$class.readWholeStream(IOHelpers.scala:97)
> net.liftweb.util.Helpers$.readWholeStream(Helpers.scala:30)
> net.liftweb.http.LiftRules$$anonfun$45.apply(LiftRules.scala:1051)
> net.liftweb.http.LiftRules$$anonfun$45.apply(LiftRules.scala:1050)
> net.liftweb.http.provider.servlet.HTTPRequestServlet$$anon$1.next
> (HTTPRequestServlet.scala:114)
> net.liftweb.http.provider.servlet.HTTPRequestServlet$$anon$1.next
> (HTTPRequestServlet.scala:98)
> scala.Iterator$class.toList(Iterator.scala:696)
> net.liftweb.http.provider.servlet.HTTPRequestServlet$$anon$1.toList
> (HTTPRequestServlet.scala:98)
> net.liftweb.http.provider.servlet.HTTPRequestServlet.extractFiles
> (HTTPRequestServlet.scala:116)
> net.liftweb.http.Req$$anonfun$5.apply(Req.scala:146)
> net.liftweb.http.Req$$anonfun$5.apply(Req.scala:141)
> net.liftweb.http.Req.x$18(Req.scala:319)
> net.liftweb.http.Req.uploadedFiles(Req.scala:318)
> net.liftweb.http.LiftSession.runParams(LiftSession.scala:303)
> net.liftweb.http.LiftSession.processRequest(LiftSession.scala:489)
> net.liftweb.http.LiftServlet.net$liftweb$http$LiftServlet$
> $dispatchStatefulRequest(LiftServlet.scala:254)
> net.liftweb.http.LiftServlet$$anonfun$3.apply(LiftServlet.scala:171)
> net.liftweb.http.LiftServlet$$anonfun$3.apply(LiftServlet.scala:171)
> net.liftweb.http.S$.net$liftweb$http$S$$wrapQuery(S.scala:950)
> net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1$
> $anonfun$apply$24.apply(S.scala:1090)
> net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:887)
> <SNIP>
>
> In case this helps, here's what I have in the form:
> <lift:surround with="default" at="content">
> <lift:snippet type="upload_view:show" form="post" multipart="true">
> <input type="file" name="file_upload" />
> <input value="Upload" type="submit"/>
> </lift:snippet>
> </lift:surround>
>
> And here's how I retrieve the file from the request:
> def show(xhtml: NodeSeq) : NodeSeq = {
> for {
> request <- S.request if S.post_?
> file <- request.uploadedFiles.find(_.name ==
> "file_upload")
> } acceptFile(file)
> xhtml
> }
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.