Hi
I am struggling to create / save a PDF file to my Google Drive.
I have been able to install & run node-red-contrib-google-oauth2, this gives me access to my google account with the right permission.
I am using files.create to create a pdf file.
This is the payload I use:
var payload = {
uploadType: "multipart/form-data",
supportsAllDrives: true,
resource: {
name: "MyPDFFile.pdf",
"contenType": 'application/json; charset=UTF-8'
},
media: {
mimeType: "application/pdf; charset=UTF-8",
body: msg.payload
},
}
msg.payload = payload;
return msg;
I am ending up with an empty PDF in my google drive.
What am I doing wrong?
Thanks in advance
Heursqem