Saving file with upload_module

Valery Kholodkov valery+nginxen at
Mon Nov 2 15:52:56 MSK 2009

----- Grzegorz Sienko <staff at> wrote:
> Hello.
> I have a little problem with upload_module. According to
> documentation: 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.
Valery Kholodkov

More information about the nginx mailing list