Dear Prosody Developers,
I suggest this tiny patch for inclusion into the
mod_http_upload_external
Motivation:
`share.php` belives PHP_SELF to be the full URI given to the uploaded
file. However, for example, using nginx, with certain configurations
this is not the case, as can be seen, say, here:
https://code.r3pek.org/r3pek/docker-prosody-http-upload-external/src/branch/master/default.conf
The user has to modify share.php, and provide a separate UPLOAD_FILENAME
header.
This tweak could be avoided using DOCUMENT_URI.
I checked with nginx, and OpenBSD's https, and it seems to work without
problems.
The patch is attached to this mesage: