[web-devel] Yesod, picture uploading, storing, rendering

Michael Snoyman michael at snoyman.com
Mon Jun 27 13:53:26 CEST 2011


On Sun, Jun 26, 2011 at 1:40 PM, Anton Cheshkov <acheshkov at gmail.com> wrote:
> Hello Michael,
> i have started to deal with  file uploading and found several problems
> 1. The Yesod restricts file upload for non-small files http response
> is Status: 413 Request Entity Too Large.
>     How can change this ?

http://hackage.haskell.org/packages/archive/yesod-core/0.8.2/doc/html/Yesod-Core.html#v:maximumContentLength

> 2. Yesod does not recognize file uploding via XHR. The runRequestBody
> function returns the empty files list.
> How to see the uploading file content ?

You likely need to change the content-type request header to reflect
multipart-form data.

Michael



More information about the web-devel mailing list