Rename file

Hello,

I have a question, I retrieve pdf via a get api, but these files are all called “data” is it possible to easily rename them with n8n?

thank you

Anthony

Hi @Larmier_Anthony

Yes this is possible. You will find the option in that same panel:

Ps. the files aren’t called data at the moment, just the binary data is called data.
The file name itself can usually be set within nodes that push the file somewhere/ save it to drive.

1 Like

Hey @Larmier_Anthony, you might also want to check out the example at HTTP Request Node: Read filename from content-disposition header when downloading files - #3 by MutedJam

Sometimes webservers provide filenames through a header which n8n currently ignores. The workflow in the linked post has a workaround for that :slight_smile:

1 Like