Welcome! Log In Create A New Profile

Advanced

Re: upload module error

Valery Kholodkov
March 29, 2011 05:30AM
Perhaps you don't have method="POST" set in your upload form?

----- vetri <nginx-forum@nginx.us> wrote:
> hi ,
>
> i am using nginx upload module to upload files.i am using the following
> configuration and file is uploaded successfully but 405 Not Allowed
> error is returned to browser from Server.can someone help what is the
> problem is?
>
>
>
> worker_processes 20;
>
> error_log logs/error.log notice;
>
> working_directory /usr/local/nginx;
>
> events {
> worker_connections 1024;
> }
>
> http {
> include mime.types;
> default_type application/octet-stream;
>
> server {
> listen 80;
> client_max_body_size 100m;
>
> # Upload form should be submitted to this location
> location /upload {
> # Pass altered request body to this location
> upload_pass @test;
>
> # Store files to this directory
> # The directory is hashed, subdirectories 0 1 2 3 4 5 6 7 8 9 should
> exist
> upload_store /tmp 1;
>
> # Allow uploaded files to be read only by user
> upload_store_access user:r;
>
> # Set specified fields in request body
> 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$";
> }
>
> # Pass altered request body to a backend
> location @test {
> proxy_pass http://localhost:8080;
> }
> }
> server{
> listen 8080;
> }
> }
>
> reason for this error 405 ?and why it is occuring based on this
> configuration?
>
>
>
>
> thanks in advance
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,186553,186553#msg-186553
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

--
--
Regards,
Valery Kholodkov

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

upload module error

vetri March 29, 2011 05:00AM

Re: upload module error

Valery Kholodkov March 29, 2011 05:30AM

Re: upload module error

vetri March 29, 2011 05:50AM

Re: upload module error

Valery Kholodkov March 29, 2011 06:12AM

Re: upload module error

vetri March 29, 2011 06:52AM

Re: upload module error

Valery Kholodkov March 29, 2011 07:48AM

Re: upload module error

vetri March 29, 2011 09:17AM

Re: upload module error

Valery Kholodkov March 29, 2011 09:42AM

Re: upload module error

vetri March 30, 2011 12:00AM

Re: upload module error

vetri March 30, 2011 12:36AM

Re: upload module error

Yanxin Z. March 29, 2011 11:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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