Chunkin module is not working

I am trying to use chunkin module in nginx, which is

I have the problem to use it.
I add “chunkin on” inside server config.
However, when I turn on nginx server, i enountered the error:
[emerg]: unknown directive “chunkin” in ./conf/nginx.conf:36

Another question is test cmd:
I have bunch of these errors:

t/pressure…dubious
Test returned status 2 (wstat 512, 0x200)
t/random…Can’t locate Test/Nginx/Socket.pm in @INC (@INC
contains: inc lib t/lib /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
t/lib/Test/Nginx/Socket/Chunkin.pm line 5.
BEGIN failed–compilation aborted at t/lib/Test/Nginx/Socket/Chunkin.pm
line 5.
Compilation failed in require at t/random.t line 4.
BEGIN failed–compilation aborted at t/random.t line 4.

Could you help me to figure out the problem?
Thank you so much.
Yanxin

On Thu, Mar 24, 2011 at 11:12:25PM +0100, Yanxin Z. wrote:

Hi there,

I am trying to use chunkin module in nginx, which is
GitHub - agentzh/chunkin-nginx-module: HTTP 1.1 chunked-encoding request body support for Nginx
I have the problem to use it.
I add “chunkin on” inside server config.
However, when I turn on nginx server, i enountered the error:
[emerg]: unknown directive “chunkin” in ./conf/nginx.conf:36

That suggests that the nginx you are using does not include the chunkin
module.

What does “nginx -V” say, when you use the same nginx as shows this
error?

All the best,

f

Francis D. [email protected]

On Thu, Mar 24, 2011 at 11:12 PM, Yanxin Z. [email protected]
wrote:

BEGIN failed–compilation aborted at t/lib/Test/Nginx/Socket/Chunkin.pm
line 5.
Compilation failed in require at t/random.t line 4.
BEGIN failed–compilation aborted at t/random.t line 4.

Could you help me to figure out the problem?
The problem wit the test command is that you should have Test::Nginx
installed. You can get it from CPAN with something like that:
perl -MCPAN -e ‘install Test::Nginx’

If you’re missing some dependencies, something like that can do the
trick (did for me on Fedora Core 14):
yum install perl-CPAN perl-Test-Base perl-Test-LongString
perl-List-MoreUtils

And you don’t have to run tests for the chunkin module to work…

Cheers,

Antoine.

Hello Vetry,

for checksum calculation you can use:

*syntax: *upload_aggregate_form_field / /

**Specifies a form field(s) containing aggregate attributes to generate
for each uploaded file in request body passed to backend. Both name and
value could contain standard nginx variables, variables from
upload_set_form_field
http://www.grid.net.ru/nginx/upload.en.html#upload_set_form_field
directive and following additional special variables:

* $upload_file_md5 -- MD5 checksum of the file
* $upload_file_md5_uc -- MD5 checksum of the file in uppercase 

letters
* $upload_file_sha1 – SHA1 checksum of the file
* $upload_file_sha1_uc – SHA1 checksum of the file in uppercase
letters
* $upload_file_crc32 – hexdecimal value of CRC32 of the file
* $upload_file_size – size of the file in bytes
* $upload_file_number – ordinal number of file in request body

Am 29.03.2011 06:57, schrieb vetri:

mr valery,

is there any module to unzip ,checksum calculation for the uploaded
file?

Posted at Nginx Forum:

mr alexander ,

thanks for the reply . can we print that variable into log file to see
the checksum and file name …?

Posted at Nginx Forum: