simple module question
valery+nginxen at grid.net.ru
Fri Jul 11 23:28:40 MSD 2008
I've forgotten to clarify, that HTML form uploads are encapsulated in
multipart/form-data format, thus "decoding of a request body" in your
case would probably mean "decoding mulipart/form-data". That's why my
previous message considers processing of multipart/form-data format.
Manlio Perillo wrote:
> Chavelle Vincent ha scritto:
>> I just want to make a simple module which get uploaded image to a
>> directory with a custom name. All things seem to be good but
>> ngx_http_read_client_request_body create local image with the form
>> header (filename="test.jpg" Content-Type :application-octet-stream
>> etc...). Do you know a simple way to remove it ? I want avoid a new
>> reading from disk.
> Nginx *does not* decode the request body.
> I'm planning to write a function that does the decoding, for use in
> mod_wsgi, but I don't now when I will find the time.
> It will not exacly be what you want, but the function can be reused.
> If you manage to write such function before me, please let me know (it's
> not an easy task)!
More information about the nginx