I want to send a file as a Gmail Attachment using file object and not a url.
Before Gmail action I have added a “Code By Zapier” where I create the file object.
I have attached the image below.
How can I add it in the Attachment field and send the pdf as an attachment?
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/c3e69857-55a6-44f3-b215-9bfa4d000bee.png)
Also, after executing the code, when I click on Attachment field, it shows me separate keys: attachment content, attachment filename and attachment type and not “attachment” as a single key