some questions about the upload module

Valery Kholodkov valery+nginxen at grid.net.ru
Tue Sep 9 20:30:57 MSD 2008


Manlio Perillo wrote:
> Valery Kholodkov ha scritto:
>> "Manlio Perillo" <manlio_perillo at libero.it> wrote:
>>
>>>    For the example in the source, how is the request body passed to the
>>>    PHP application encoded?
>>
>> I simply replace r->request_body->bufs with the chain of buffers,
>> containing new body. The ngx_http_read_client_request_body function
>> somehow manages to read no data more and fastcgi and proxy modules are
>> clever enough to serialize those buffers properly.
>>
> 
> The data is the same multipart/form-data encoded data, with extra 
> parameters (like the temporary file path) added in the content-disposition?

Yes, the data is the same multipart/form-data, but extra parameters are 
added as fields.

-- 
Regards,
Valery Kholodkov





More information about the nginx mailing list