Comments (8)
Can you attach (or send me privately by e-mail) the full debug log (you'll need to compile nginx with --with-debug)?
I think "more_set_headers" phase happens after the upload is registered in the upload progress module, which I'm afraid can't be fixed easily, but I'd like to check first with the log.
from nginx-upload-progress-module.
I've mailed it to you.
from nginx-upload-progress-module.
I also checked debug log and as you suggest get_tracking_id is called earlier then headers are set.
How can I fix it?
from nginx-upload-progress-module.
I also checked debug log and as you suggest get_tracking_id is called earlier then headers are set.
How can I fix it?
from nginx-upload-progress-module.
Hmm, reading more headers documentation, it looks like "more_set_headers" sets output headers (the one that will be returned to the client).
Can you try with "more_set_input_header" instead?
from nginx-upload-progress-module.
Yep, that solve half of problem. But first call get_tracking_id is performed earlier then setting of headers.
In our application we need to proxy traffic to Amazon that reject requests with querystring.
So currently we have solve problem in following way. We receive querystring param. Set header using querystring value and then remove querystring with rewriting.
location /upload {
if ($request_uri ~* "^/upload\?X-Progress-ID=(.*)$") {
set $progress_id $1;
more_set_input_headers "X-Progress-ID: $progress_id";
}
set $args "";
rewrite ^(.*)$ / break;
proxy_pass http://myamazonbucket.s3.amazonaws.com/;
#proxy_redirect default;
track_uploads proxied 30s;
}
from nginx-upload-progress-module.
Do you mean the problem is solved by the rewrite break?
from nginx-upload-progress-module.
Rewrite required to remove "/upload". set $args "" removes "X-Progress-ID" from querystring.
from nginx-upload-progress-module.
Related Issues (20)
- Didn't work with chrome version 31.ole chrome is ok. HOT 3
- NginxHttpUploadProgressModule received and size are the same HOT 12
- When TLS is enabled recieved and size are always the same HOT 4
- Wrong fix HOT 2
- cannot set tracking id
- Module seems to work correctly with uwsgi_pass
- Received bytes begins at complete file size for a few ticks and then functions as normal
- Progressbar with "vkholodkov/nginx-upload-module" return completed upload when starting
- Received and size are the same HOT 1
- Received and size are the same when using HTTP/2 HOT 2
- Dynamic module support HOT 6
- nginx-upload-progress-module appears to be not loaded HOT 2
- Received and size are the same HOT 8
- not work for proxy_pass to other nginx HOT 1
- Problem with 'dynamically loadable module' support. HOT 3
- Implement HTTP Server-Sent Events HOT 1
- nginx-upload-progress don't work in nginx 1.10.2
- Received and size are the same HOT 1
- Compilation fails with Nginx 1.23 HOT 10
- The Linux system is Alpine Linux, and the Nginx version is 1.25. Currently, the compilation is failing.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-upload-progress-module.