Closed mkassir95 closed 1 year ago
The problem is that I am trying to send a file using smack library and I am getting this error D/SMACK: RECV (0): <iq xml:lang='en' to='admin@localhost/Smack' from='rawad@localhost/Smack' type='error' id='wld8U-12'><error type='cancel'><feature-not-implemented xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>
This is my smack code
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(new
File(getFilesDir()+File.separator+"MyFile.txt"))); bufferedWriter.write("lalit poptani"); bufferedWriter.close(); FileTransferManager manager = FileTransferManager.getInstanceFor(conn1); OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("rawad@localhost/Smack"); transfer.sendFile(new File(getFilesDir()+File.separator+"MyFile.txt"), "You won't believe this!");
Can you test with a proper client too, eg. Dino or Gajim, Siskin or Monal, Conversations?
If that works it means it's not a server issue so you can close this and continue elsewhere like https://igniterealtime.atlassian.net/jira/software/c/projects/SMACK/issues
ejabberd.yml
loglevel: debug
listen:
- port: 5280 ip: "::" module: ejabberd_http request_handlers: /admin: ejabberd_web_admin
- port: 5281 module: ejabberd_http ip: "::" request_handlers: /api: mod_http_api /oauth: ejabberd_oauth
- port: 5443 module: ejabberd_http request_handlers: /upload: mod_http_upload
- port: 5347 ip: "::" module: ejabberd_service hosts: "mymuc.domain.tld": password: "mysecret"
acl: exampleorg: server: localhost
api_permissions: "admin api permsions": from:
modules: mod_admin_extra: {} mod_muc: access:
allow default_room_options: allow_subscription: true # enable MucSub allow_private_messages: true allow_user_invites: true mam: true persistent: true mod_muc_admin: {} mod_push_keepalive: wake_on_start: true mod_offline: {} mod_push: {} mod_http_upload: docroot: /home/ejabberd/upload put_url: "http://@HOST@:5443/upload"
mod_offline_notify: {}