N8n local file trigger node filter only

When using the local file trigger node in n8n,
I want to trigger only when it has a specific extension (.pdf).
Is it possible?
I am using DeskTop App on Windows 11. (Use the latest version)

Hi @HeeHang_Seo, welcome to the community :tada:

You can either specify this directly in the trigger node using the Ignore option, though this can be a bit complicated as you would need to describe which patterns to exclude (so the opposite of what you have in mind).

You could, however, simply connect an IF node that verifies your file extension. Here’s a quick example workflow:

Your trigger would then still run for each new file, but the workflow logic after the IF node would only apply to PDF files.

3 Likes