Hey,
Is there a way to upload an attachment thru n8n ?
Or we have to use the “HTTP” node ?
Thanks
Hey,
Is there a way to upload an attachment thru n8n ?
Or we have to use the “HTTP” node ?
Thanks
Hmm, good question. There is an API endpoint for it (this one), but the n8n integration is somewhat only has the most common operations, and does not include attachments.
There has been a bit of community activity on Grist in the n8n repo since the integration was created: Issues · n8n-io/n8n · GitHub. Perhaps a good step would be to create an issue there requesting support for attachments.
Thanks , I’ll create an issue on n8n.
In the meanwhile I wanted to make an http request to upload a file but no success.
Here the curl generated by the call
curl -X 'POST' 'https://docs.getgrist.com/api/docs/DOC_ID/attachments' -H 'connection: close' -H 'host: webhook.site' -H 'user-agent: axios/0.21.4' -H 'content-type: multipart/form-data; boundary=--------------------------757274825252532934167502' -H 'content-length: 63738' -H 'accept: application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7'
The response is an encoding of Bad request (missing header)
.
I wonder what is responsible for the response being unreadable.
As for which header is missing, could be Authorization
(as documented here)?
Ooooh yeah, thank you very much .
My bad, I forgot, like you said the Authentication