Welcome! Log In Create A New Profile

Advanced

upload module

Konstantin Svist
March 28, 2011 08:36PM
Что-то не могу заставить upload работать.. Все время получаю "The
connection was reset"


Конфига:

server {
listen 80;
location /upload {
client_max_body_size 100m;
access_log logs/other/upload.log;
error_log logs/other/upload_err.log;

upload_pass @test;
upload_store /tmp/upload 1;
upload_store_access user:r;
upload_set_form_field $upload_field_name.name "$upload_file_name";
upload_set_form_field $upload_field_name.content_type
"$upload_content_type";
upload_set_form_field $upload_field_name.path "$upload_tmp_path";

# Inform backend about hash and size of a file
upload_aggregate_form_field "$upload_field_name.md5"
"$upload_file_md5";
upload_aggregate_form_field "$upload_field_name.size"
"$upload_file_size";
upload_pass_form_field "^submit$|^description$";
upload_cleanup 400 404 499 500-505;
}
location @test {
default_type text/html;
echo "OK";
}
location /uploadform {
default_type text/html;
echo '<html><head><title>Test upload</title></head><body><h2>Select
files to upload</h2><form name="upload" method="POST"
enctype="multipart/form-data" action="/upload"><input type="file"
name="file1"><br><input type="file" name="file2"><br><input
type="submit" name="submit" value="Upload"><input type="hidden"
name="test" value="value"></form></body></html>';
}
}


Лога:

63.82.5.67 - - [28/Mar/2011:17:30:29 -0700] "POST /upload HTTP/1.1" 0 0
"http://testserver/uploadform" "Mozilla/5.0 (X11; Linux i686; rv:2.0)
Gecko/20100101 Firefox/4.0"


_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

upload module

Konstantin Svist March 28, 2011 08:36PM

Re: upload module

Valery Kholodkov March 29, 2011 03:42AM

Re: upload module

Konstantin Svist March 30, 2011 02:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
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