Saving file with upload_module

Valery Kholodkov valery+nginxen at grid.net.ru
Mon Nov 2 15:52:56 MSK 2009


----- Grzegorz Sienko <staff at krecio.pl> wrote:
> Hello.
> 
> I have a little problem with upload_module. According to
> documentation: http://www.grid.net.ru/nginx/upload.en.html i will
> quote:
> 
> "The content of each uploaded file then could be read from a file
> specified by $upload_tmp_path variable or the file could be simply
> moved to ultimate destination."
> 
> and my question is how to moved, or I would say, save these files to
> this ultimate destination. The goal that I want to achieve is simple.
> Using upload_module i want to save file to a disk. According to this
> sentence above, I thinks is possible, but I don't really now how to do
> that. In every single page with some example configuration of this
> module, file is forwarded after upload to backend server. I just want
> to save this file on hard drive. It's possible?

This is what the module actually does. The $upload_tmp_path contains a path where the content of the file is saved to. This path might be regarded as temporarily or permanent.
 
-- 
Regards,
Valery Kholodkov





More information about the nginx mailing list