Hello,

I was having difficulty getting this module to work until i started hacking around in fielfield_nginx_progress.module and added some extra response information so i could see what was happening in my firebug console.

Turns out the AJAX responses weren't being cleaned sufficiently and there were extra \u0022 characters.

So i added two lines to the module.
// strip quotes and spaces from key & value pair
$key = trim($array[0], "' ");
$value = trim($array[1], "' ");
// strip double quotes
$key = trim($key, '"');
$value = trim($value, '"');

Sorry i'm not very good with the patch system, these lines are around line number 120.

Cheers,
Dewey

CommentFileSizeAuthor
#1 1630506-2.diff1.35 KBwedge
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wedge’s picture

FileSize
1.35 KB

I had the same problem but fixed it differently.

First I changed nginx.conf so that we get pure json back from the upload progress module:

location ^~ /progress {
     upload_progress_json_output;
     # report uploads tracked in the 'proxied' zone
     report_uploads uploads;
}

And then I patched the module (attached).

perusio’s picture

This problem has been fixed in the 7.x-2.1 version.

perusio’s picture

Assigned: Unassigned » perusio
perusio’s picture

Status: Active » Fixed

Use the 7.x-2.3 version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.