我将 Openfire 与 Conversations 一起使用,并希望使用HttpUploadComponent实现离线文件传输,我已将 httpupload 文件夹复制到 openfire 文件夹中,如下图所示:
然后我在openfire中做了以下配置:
我还在 httpupload 文件夹中安装了 Python 并配置了 config.yml 文件,如下所示:
component_jid: upload.192.168.105.164
组件秘密:1234 组件端口:5275
存储路径:./var/lib/httpupload/
最大文件大小:20971520 #20MiB
http_address: 0.0.0.0 #如果不想使用代理,请使用 0.0.0.0 http_port: 8080
获取网址:http : //192.168.105.164 :8080/
put_url : http://192.168.105.164:8080/
expire_interval: 82800 #time in secs between expiry runs (82800 secs = 23 hours). 设置为 '0' 以禁用 expire_maxage: 2592000 #比此更旧的文件(以秒为单位)被过期运行(2592000 = 30 天)删除 user_quota_hard: 104857600 #100MiB。设置为“0”以禁用拒绝超过硬配额的上传 user_quota_soft: 78643200 #75MiB。设置为“0”以禁用通过软配额删除旧上传 到期运行 allow_web_clients: true #answer OPTIONS 请求允许 Web 客户端上传文件
我也运行了 Httpupload 服务器:
启动python服务器后,如果你去openfire\serversetting\external components*查看外部组件* [在第一行],你会看到会话是否创建:
毕竟,当我想从 android 客户端发送文件时,它失败了,它给了我这个错误:
我的问题在哪里?谢谢。