Skip to content

Can not upload attachement to webdav (nextcloud) #35792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tcoupin opened this issue Apr 13, 2025 · 0 comments
Open

Can not upload attachement to webdav (nextcloud) #35792

tcoupin opened this issue Apr 13, 2025 · 0 comments

Comments

@tcoupin
Copy link

tcoupin commented Apr 13, 2025

Description:

I set up my nextcloud server into RC. I can send files from NC to RC but I can not save attachment to my NC.
"Error while loading file"

Steps to reproduce:

  1. Add a nextcloud server to my account: plus sign near message box, add server
  2. On a messge with attachment, click on three dots, save to webdav
  3. Error...

Expected behavior:

The file must be uploaded to nextcloud

Actual behavior:

"Error while loading file"

Server Setup Information:

  • Version of Rocket.Chat Server: 7.5.1
  • License Type: community
  • Number of Users:
  • Operating System:
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:

Client Setup Information

  • Desktop App or Browser Version: 4.1.4 (tested on desktop app and browser)
  • Operating System:

Additional context

Relevant logs:

{"level":50,"time":"2025-04-13T13:58:23.227Z","pid":1,"hostname":"tchat-rocketchat-85bfbb6747-tfnxp","name":"WebDAV_Upload","err":{"type":"TypeError","message":"The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object","stack":"TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object\n    at Function.from (node:buffer:325:9)\n    at uploadFileToWebdav (app/webdav/server/lib/uploadFileToWebdav.ts:14:24)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at MethodInvocation.uploadFileToWebdav (app/webdav/server/methods/uploadFileToWebdav.ts:39:4)\n    at app/lib/server/lib/debug.js:85:20","code":"ERR_INVALID_ARG_TYPE"},"msg":"The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant