Srebrenko Sehic
October 11, 2009 04:06AM
On Sun, Oct 11, 2009 at 6:45 AM, gaosboy <nginx-forum@nginx.us> wrote:
> I need write a nginx module to upload a single file by POST method.
>
> Just get post request and move the file to a specified path.
>
> It is simple but I cannot get the POST data now. I want to know how to move the file from ngx_http_request_t *r to the filesystem.

It's easy using the built-in Perl module and
$r->has_request_body(\&sub_reference). Look at the docs for Perl
module at http://wiki.nginx.org/NginxEmbeddedPerlModule
Subject Author Posted

HELP, I need write a module, upload a single file.

gaosboy October 11, 2009 12:45AM

Re: HELP, I need write a module, upload a single file.

Srebrenko Sehic October 11, 2009 04:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready