Gmail Send message node is not sending the attachmnt as untitled with no file extension

A workflow that copy files and send them thorugh gmail is sending the attachment as untitled and with no file extension. I use the download file Google drive node to download the file and transform it to pdf, but something between the download and the send message node is happening that is sending the attachment as “untitled”

What is the error message (if any)? Attachment sent as untitled. The one with the problem is the one below

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version: 1.112.4
  • **Database (default: SQLite): SQLite
  • **n8n EXECUTIONS_PROCESS setting; Own
  • **Running n8n via: Docker
  • **Operating system: Ubuntu 24.04

Hey, can you check one of the executions in which the file was untitled - is it untitled at the Gmail node, in the Input section, or it looks OK there?

The file is untitles when it reached the recibient mailbox. In the n8n workflow is totally fine.

As you can see the file on the left doesn’t have .pdf in the name. The File Extension field is just an inferred metadata, it doesn’t make “pdf” a part of the actual file name.

Try to change the field in the “download file” node from

{{ $('Copy file').item.json.name }}

to

{{ $('Copy file').item.json.name }}.pdf
Screenshot

1 Like

OMG @jabbson, I’ve been on this all day. You’re the best. Thank you!

1 Like

Btw, I tested this as well and my file sent without the extension. The extension is not a requirement and the Untitled issue you are seeing is caused by something else - like the workflow failing to populate that variable from the Copy File node. I couldn’t reproduce it but keep that in mind as it may break again.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.