You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason for the problem is that psi's http upload plugin does not send the Content-Type in the HTTP PUT request. This means that the server-side share_v2.php script falls back to using "application/octet-stream" as mime type, and calculates the wrong signature.
Psi's upload plugin already sends the correct mime type to the XMPP server to get the upload URL:
When uploading a file via HTTP upload to my prosody xmpp server, I get an error:
In my server's error logs, I see
I am using prosody's https://modules.prosody.im/mod_http_upload_external.html with
share_v2.php
.The reason for the problem is that psi's http upload plugin does not send the
Content-Type
in the HTTP PUT request. This means that the server-sideshare_v2.php
script falls back to using "application/octet-stream" as mime type, and calculates the wrong signature.Psi's upload plugin already sends the correct mime type to the XMPP server to get the upload URL:
It just fails to submit it via the actual upload.
Versions:
The text was updated successfully, but these errors were encountered: