masterzen / nginx-upload-progress-module

Nginx module implementing an upload progress system, that monitors RFC1867 POST uploads as they are transmitted to upstream servers.
http://wiki.codemongers.com/NginxHttpUploadProgressModule
Other
432 stars 101 forks source link

cannot set tracking id #39

Open Bernicia opened 10 years ago

Bernicia commented 10 years ago

Hello,

I am using nginx 1.6 - the latest debian extras package with upload progress module. (and php5-fpm)

I cannot get the module to detect and set my tracking id. I do a normal file upload (not ajax call) and however I set the post parameter (I can't set it in header as I can't make an ajax call) the module never recognises it. I get the same lines logged each time

2014/10/27 09:52:26 [debug] 32651#0: 86 upload-progress: get_tracking_id 2014/10/27 09:52:26 [debug] 32651#0: 86 upload-progress: get_tracking_id no header found 2014/10/27 09:52:26 [debug] 32651#0: 86 upload-progress: get_tracking_id no id found 2014/10/27 09:52:26 [debug] 32651#0: 86 trackuploads no id found in POST upload req

The ajax call to progress then gives me a 405 error (not allowed) which I guess is because tracking has not been initialised.

2014/10/27 09:52:27 [debug] 32651#0: 87 upload-progress: get_tracking_id 2014/10/27 09:52:27 [debug] 32651#0: 87 malloc: 0000000001E23BA0:16 2014/10/27 09:52:27 [debug] 32651#0: 87 upload-progress: get_tracking_id found header: 1159563624 2014/10/27 09:52:27 [debug] 32651#0: 87 trackuploads id found: 1159563624 2014/10/27 09:52:27 [debug] 32651#0: *87 trackuploads not tracking in this location for id: 1159563624

and

2014/10/27 09:52:27 [debug] 32651#0: 87 http finalize request: 405, "/progress?" a:1, c:1 2014/10/27 09:52:27 [debug] 32651#0: 87 http special response: 405, "/progress?" 2014/10/27 09:52:27 [debug] 32651#0: 87 http set discard body 2014/10/27 09:52:27 [debug] 32651#0: 87 uploadprogress error-tracker error: 405 2014/10/27 09:52:27 [debug] 32651#0: *87 uploadprogress error-tracker not tracking in this location

Any ideas? I've definitely got the post parameter name correct, and I've debugged the request and can see the correct post parameter on the server - the module just doesn't detect it.

many thanks Dave