mondaycom / monday-sdk-js

Node.js and JavaScript SDK for developing over the monday.com platform
https://monday.com
MIT License
87 stars 39 forks source link

[Bug] triggerFilesUpload Failing Partially #58

Closed TheSecMaven closed 9 months ago

TheSecMaven commented 2 years ago

Describe the bug I am having a hard time using the triggerFilesUpload, I see the file in file gallery but only for a few minutes, then its gone. I also get an error in the console after the upload. I think it has to do with attaching the file to a column.

Steps to reproduce

  1. Embed the SDK in an app
  2. Call monday .execute("triggerFilesUpload", { boardId: boardId, itemId: fileres.data.create_item.id, columnId: "files", })
  3. See the request succeeds initially but an error is logged in console and the file eventually is gone from file gallery in monday.com

Expected behavior I'd expect the file to show up in the column ID I named, not just the gallery. I also expect it to persist.

Context and environment local app, google chrome latest version, latest version of the SDK

Additional information

gregra81 commented 9 months ago

@TheSecMaven Is this still relevant?

TheSecMaven commented 9 months ago

No, I am not sure it works now or not but I found a workaround I think with the raw graphql API and using a backend process

gregra81 commented 9 months ago

Great to hear, thanks