I’ve been working on an integration with the monday api and a portal we made for our clients so they can create tickets in our monday boards and track the progress on them.
We ran into an issue where whenever we create an update to an item with a body containing a base64 encoded image over 50Kb in size the body shows completely empty on monday.
Images smaller than this size show up perfectly fine. Is there something I might be doing wrong/missing?
Do you mind sending me a screenshot of the code you’re using? Please make sure to white out any sensitive data and IDs.
I can then try and better understand what the issue may be. I suspect it might be related to how you’re uploading the file, rather than a bug or something.
Just to make sure we’re on the same page here, it seems like you are posting an update with just the body, but not using a mutation to actually upload a file? If so, I’m afraid this would be the expected behavior - I would recommend posting the update, returning the ID of the new update, and then using the add_file_to_update mutation in order to add the file to it.
Would you be able to give this a shot, or perhaps clarify how you are uploading files to updates, as this is not shown in your screenshot? I hope we can get to the bottom fo this together
I am currently not trying to add files to updates.
The body contains a html format string which can contain images that get base64 encoded. This comes from the frontend using tiptap vuetify.
Currently selectedImage is not being used, I was using this variable for an add_file_to_update mutation, but it would be preferrable to have the images included in the body of the update itself.
With add_file_to_update i also ran into the issue that the file attached to an update wouldn’t give a preview and would download to local when selected.
An example of the content of the query that is send is:
(body contains the description variable with all of the HTML content)
The size limit for our files is 500 MB as stated in our support article here.
Do you mind passing the image to me so I can see if I’m able to reproduce? If it contains sensitive information feel free to email it to appsupport@monday.com.
Just heard back from our developers and he let me know that this may be happening because you’re sending requests through our “regular” API endpoint https://api.monday.com/v2.
Our alternate endpoint for files is https://api.monday.com/v2/file, however this will only work for our add_file_to_update() or add_file_to_column() mutation methods, which would be a different way of uploading files to an update or column.
For examples on how this is done, I would recommend checking out the following resources: