Permalink
Browse files

Store state files in a directory specified by upload_state_store, not…

… upload_store
  • Loading branch information...
1 parent b100ed9 commit 8cfa51302da6d3c27aa3779303f479a63a337ea8 Valery Kholodkov committed Apr 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ngx_http_upload_module.c
@@ -1050,7 +1050,7 @@ static ngx_int_t ngx_http_upload_start_handler(ngx_http_upload_ctx_t *u) { /* {{
ngx_http_upload_loc_conf_t *ulcf = ngx_http_get_module_loc_conf(r, ngx_http_upload_module);
ngx_file_t *file = &u->output_file;
- ngx_path_t *path = ulcf->store_path;
+ ngx_path_t *path = (u->session_id.len == 0 ? ulcf->store_path : ulcf->state_store_path);
uint32_t n;
ngx_uint_t i;
ngx_int_t rc;

0 comments on commit 8cfa513

Please sign in to comment.