data : Error Bad request - please check your parameters. { "msg": "No attachment provided!" }
{{ data }}: The record is successully created with the data excepted for the file which is not showing in the NocoDB row. I do not have any error displayed.
{{ $binary}} or {{ $binary.data }}: I have the following error : The item has no binary field '[object Object]' [item 0].
I already tried to set the field to fixed data but I have the error : Bad request - please check your parameters { "msg": "No attachment provided!" }. Makes sence because data == {{ data }}.
But what is interesting is that it is working with an image I got online but not a pdf I got from Airtable. Notice the button Download visible for the picture but not the pdf. You have the Download button as well. It is just like if the previous step did not download the pdf file correctly.
I found the problem but not the solution. The issue is in the download step.
I have a Airtable table with two records:
The first has a pdf file attached
The second has a jpg file attached
What I do:
List the records
Download the files with a simple GET request
The results are different. The File Name is missing for the pdf file. Why so ?
It is like if the pdf was not correctly downloaded. Could explain why the Download button is missing?
@LucBerge thanks for sharing the details of your investigation. It makes sense.
About the option to use the fixed value instead of Expression, I think the issue for you was that you used {{ data}}. You should not use the curl brackets but purelly string data without anything sorrounding it. I am uploading an image from my test for reference: