Code Monkey home page Code Monkey logo

Comments (4)

vkholodkov avatar vkholodkov commented on September 28, 2024

Indeed, it's a bug. Thanks for checking!

from nginx-upload-module.

vkholodkov avatar vkholodkov commented on September 28, 2024

Could you please try a patch?

diff --git a/ngx_http_upload_module.c b/ngx_http_upload_module.c
index 3e1fcc5..64c8ca6 100644
--- a/ngx_http_upload_module.c
+++ b/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;

from nginx-upload-module.

vkholodkov avatar vkholodkov commented on September 28, 2024

Alternatively:
vkholodkov@8cfa513

from nginx-upload-module.

pyke369 avatar pyke369 commented on September 28, 2024

Well, it kind-of works, except both the uploaded file and the .state file are now stored in the state_store_path folder,
not only the .state file. This seems in contradiction with the documentation as far as I understand it (uploaded files
in store_path, and (maybe optionally?) state files in state_store_path (or in store_path if the configuration directive
is not specified?)).

What do you think?

from nginx-upload-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.