vkholodkov/nginx-upload-module — pull request #37 by funny-falcon (2012-08-28 13:42:16+00:00)
Title: Merge wd-2.2 to master and fix #11 - make upload_state_path working

wd-2.2 branch (commit 940633300ab1cfd2cf5097cf28bed200f25b4664 ) is very useful, please merge it to a 2.2 branch before next version release. I wish to use it for load balancing between several hard drives of the same upload server.

Last commit fixes `upload_state_path` to make it workable (so that fix issue #11). It is absolutely necessary cause high load on upload disk cause some misbehavior for state files when they are written to the same disk. So that, it is necessary for `upload_state_path` to point to other physical storage disk.

I've copied infrastructure from `upload_path` to `upload_state_path`, so that `upload_state_path` expanded with variables as well. I doubt it will be very usefull (I will not use this expansion), but I think, that things should behaves similar.