NginxHttpUploadProgressModule received and size are the same

Brice Figureau brice+nginx at daysofwonder.com
Fri Feb 26 18:02:59 MSK 2010


Hi,

On Fri, 2010-02-26 at 08:53 -0500, fredanthony wrote:
> Hi, I am having a weird issue. It seems I have everything up and working with the NginxHttpUploadProgressModule, however, when I upload a file and attempt to track the progress I get the expected response but the received is the same as the size:
> 
> new Object({ 'state' : 'starting' })
> new Object({ 'state' : 'uploading', 'received' : 4505554, 'size' : 4505554 })
> new Object({ 'state' : 'uploading', 'received' : 4505554, 'size' : 4505554 })
> new Object({ 'state' : 'uploading', 'received' : 4505554, 'size' : 4505554 })
> new Object({ 'state' : 'uploading', 'received' : 4505554, 'size' : 4505554 })
> new Object({ 'state' : 'uploading', 'received' : 4505554, 'size' : 4505554 })
> new Object({ 'state' : 'done' })
> 
> Notice its does send back done when completed. Any ideas on a possible cause? Thanks.

The usual issue when having those symptoms is that your upload actually
finished before the first upload progress probe could even reach the
server.
People usually test the upload on localhost, but nowadays localhost is
so fast that 4MiB are uploaded in less than 1 second...
To actually see something:
 * either throttle your upload
or
 * upload something really large (ie > 1GiB). 

Compile nginx --with-debug and look to the debug log, you'll certainly
see that the upload was finished before your client sent the upload
progress probe.

If not, then please open an issue here:
http://github.com/masterzen/nginx-upload-progress-module/issues

Check issue #3 for more information:
http://github.com/masterzen/nginx-upload-progress-module/issues/closed#issue/3
-- 
Brice Figureau
My Blog: http://www.masterzen.fr/




More information about the nginx mailing list