Hi! I got ejabberd 16.12 installed on Ubuntu from binary installer downloaded from
In context of web-client development im trying to implement uploading files to server via mod_http_upload.
I can successfully get upload slot ( described there
>XMLHttpRequest cannot load
The same result im getting when trying to send file to base put_url (
Bun in config I set custom_headers which must fix this problem but they don't.
All the test are done from localhost to remote ejabberd server deployed in
Config of listened port and mod_http_upload is listed below:
mod_http_upload:
docroot: "/opt/ejabberd-16.12/upload"
put_url: "https://jabber.fokgroup.com:5443/upload"
max_size: infinity
access: local
thumbnail: false
custom_headers:
"Access-Control-Allow-Origin": "*"
"Access-Control-Allow-Methods": "GET, POST, PUT, OPTIONS"
-
port: 5443
module: ejabberd_http
tls: true
certfile: "/opt/ejabberd-16.12/conf/server.pem"
request_handlers:
"upload": mod_http_upload
Also url
Can someone describe what should I do to fix and complete file uploading process please?
Was there a response/answer
Was there a response/answer to this question? I'm also interested in the resolution.