nginx-upload-progress-module icon indicating copy to clipboard operation
nginx-upload-progress-module copied to clipboard

works with PHP-FPM?

Open ferjgar opened this issue 14 years ago • 2 comments

I'm trying to configure this module (0.8.3) in a pretty standard nginx (1.1.7) with PHP-FPM (5.3.8) installation, and the problem is that progress always returns:

    { "state" : "starting" }

even when the upload has finished. This is my conf:

    location = /progress
    {
            upload_progress_json_output;
            report_uploads uploads;
    }

    location ^~ /uploads
    {
            fastcgi_pass   127.0.0.1:9000;
            try_files $uri /index.php?ctr=$uri&$args;
            track_uploads uploads 5s;
    }

Tested with an ultra basic HTML form and javascript, and double checked that X-Progress-ID value is sended right.

ferjgar avatar Dec 27 '11 16:12 ferjgar

How big is the uploaded file? If your test is across a fast network (or localhost which is ultra-fast) you won't see anything, except if the uploads takes more than 10 seconds.

I suggest you compile nginx with --with-debug and activate the debug log, the upload-progress module logs a lot of thing including what happens during upload and progress probes.

masterzen avatar Dec 27 '11 16:12 masterzen

@ferjgar did you get this working? I also am running similar setup....

thomascrown avatar Jul 12 '12 04:07 thomascrown