Forum: NGINX upload-module v2.0.7

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chetan Patil (Guest)
on 2008-11-30 01:40
(Received via mailing list)
Hi,

I am trying to set up nginx (0.6.32) with upload_module (2.0.7).

A couple of issues that tripped me up:

1)  upload_pass doesn't seem to be honored.
  location /ngupload {
    upload_pass /rails_upload;
   ...
  }
  location /rails_upload {
   proxy_pass http://mongreldev;
 }

In this case the upload module passes on the request to
http://<upstream_mongrel>/ngupload rather than
http://upstream_mongrel>/rails_upload

2)  File input fields with names such as upload_img[] causes the
upload module to break. The request gets mangled and something like
upload_img=[] gets posted to the upstream mongrel instance.


Are these known issues?

thanks
Chetan
Valery K. (Guest)
on 2008-12-02 04:51
(Received via mailing list)
1) It is not an issue. If you do not specify path in URI as an argument
to proxy_pass directive, the path won't be altered.

2) Can you be more verbose please? What configuration do you have, what
form do you use and what do you get in the output?

--
Regards,
Valery K.

----- Original Message -----
From: "Chetan Patil" <removed_email_address@domain.invalid>
To: removed_email_address@domain.invalid
Sent: Sunday, November 30, 2008 12:27:04 AM GMT +01:00 Amsterdam /
Berlin / Bern / Rome / Stockholm / Vienna
Subject: upload-module v2.0.7

Hi,

I am trying to set up nginx (0.6.32) with upload_module (2.0.7).

A couple of issues that tripped me up:

1)  upload_pass doesn't seem to be honored.
  location /ngupload {
    upload_pass /rails_upload;
   ...
  }
  location /rails_upload {
   proxy_pass http://mongreldev;
 }

In this case the upload module passes on the request to
http://<upstream_mongrel>/ngupload rather than
http://upstream_mongrel>/rails_upload

2)  File input fields with names such as upload_img[] causes the
upload module to break. The request gets mangled and something like
upload_img=[] gets posted to the upstream mongrel instance.


Are these known issues?

thanks
Chetan
This topic is locked and can not be replied to.