Welcome! Log In Create A New Profile

Advanced

Re: Nginx and uploads

August 29, 2012 12:51AM
w00t Wrote:
-------------------------------------------------------
> This seems odd. If it wasn't meant for Nginx to process uploaded
> files, then it couldn't have processed them by itself.
> For example, I changed
> location @test {
> proxy_pass http://example.com:8080;
>
> to
> location @test {
> default_type text/html;
> root /www;
> and removed the :8080 server part and it still works.
> So I am inclined to think that there must be a way to set the filename
> without going to such lenghts as to change the code.


Yes there is, but the default nginx install does not have the features available to do what you want and the upload module does not introduce any such feature either. If you want nginx to be able to rename files based on user input then you need a module which introduces that capability into nginx.

Of course, at this point I'm talking theory only as I haven't ever done anything like this, but it should work provided either lua module or perl module has the adds the required features - in theory.
Subject Author Posted

Nginx and uploads

w00t August 28, 2012 05:57AM

Re: Nginx and uploads

Ensiferous August 28, 2012 09:43AM

Re: Nginx and uploads

w00t August 28, 2012 11:02AM

Re: Nginx and uploads

Ensiferous August 29, 2012 12:51AM

Re: Nginx and uploads

VBart August 29, 2012 07:06AM

Re: Nginx and uploads

w00t August 30, 2012 06:30AM

Re: Nginx and uploads

agentzh August 30, 2012 03:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready