Hello,

The problem it is:

location ~ (.*)/x-progress-id:(\w*) {
rewrite ^(.*)/x-progress-id:(\w*) $1?X-Progress-ID=$2;
}

replace with:

location ~ (.*)/x-progress-id:(\w*) {
rewrite ^(.*)/x-progress-id:(\w*) /progress?X-Progress-ID=$2;
}

because:

location ^~ /progress {
report_uploads uploads;
}

the uploadprogress is avaiable on: http://example.tld/progress

and not subdir e.g.:

http://example.tld/subdir/progress

or i`m wrong?

PS: thanks for the greate modul!!!
bye

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smoothify’s picture

Are you actually experiencing trouble with running drupal in a subdirectory?

I will try and test this, but if there is a problem it would be the following that needs to be changed

from :

location ^~ /progress {
report_uploads uploads;
}

to :

location ^~ /SUBDIR/progress {
report_uploads uploads;
}

alternatively the module could make this setting configurable from a settings page.

smoothify’s picture

Status: Active » Needs review
FileSize
962 bytes

I looked into this further and managed to reproduce the issue.

Here is a patch that makes sure it uses the root of the domain and not the subdirectory.

Please let me know if it works for you.

DrachenKaiser’s picture

Hello,

thanks, it is working!

smoothify’s picture

Status: Needs review » Fixed

great, committed :)

Status: Fixed » Closed (fixed)

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