XMPP: Cannot send attachments

It’s working at my place with both synapse and ejabberd working.
but you cite only an excerpt of the solution. The point is that some xmpp clients seem to refuse upload without valid ssl encryption running. So it might be that without those subdomains file upload won’t ever work properly. But I’m not absolutely sure.

It may instead be that it suffices that you change the tls option in your /etc/ejabberd.yml to true. But that will probably break jsxc as it can’t connect to bosh server anymore. I.e.:



    - port: 5443
      ip: "::"
      module: ejabberd_http
      request_handlers:
        "/api": mod_http_api
        "/bosh": mod_bosh
        "/upload": mod_http_upload
        "/ws": ejabberd_http_ws
        ## captcha: true
        ## register: true
      tls: true ## <--- Damn! 'true' breaks bosh, 'false'  breaks http_upload.
      ciphers: 'TLS_CIPHERS'
      protocol_options: 'TLS_OPTIONS'
      web_admin: true

(source where we discussed that before)