Thanks! That's the best possible reply I could have received, and beyond my wildest expectations. This will save me lots of work.
I'll take a look at it and try it out.

Thanks again for sharing this. I'm sure it will be incorporated into Yaws; it's a great feature.

Regards,
Edwin Fine

On Sun, Aug 10, 2008 at 7:17 AM, Christopher Vance <cjsvance@gmail.com> wrote:
On Sun, Aug 10, 2008 at 4:20 AM, Edwin Fine
<erlang-questions_efine@usa.net> wrote:
> I'm thinking of adding a feature to Yaws to allow -- in a standard
> form/multipart POST -- the data to be "streamed" directly to the file
> without buffering more than a few MB in memory. Looking at the code, it
> should be doable. This will allow files limited only by disk space to be
> uploaded. It would have to include some notion of maximum size allowed to
> prevent DoS-style attacks or just plain cluelessness from making the host
> run out of disk space.
>
> Does anyone think this is (a) feasible and (b) desirable?

I already have code that does this, modified from Michael Leonhard's
work. My code also allows setting a file size limit. I'll send a copy
to you and to Claes. Maybe it'll get included in a newer yaws release.

--
Christopher Vance




--
For every expert there is an equal and opposite expert - Arthur C. Clarke