Templates / Save email attachments to Nextcloud

Save email attachments to Nextcloud

Needs changes

by Manu ✓ · 10,188 views · created 2021-11-29 · File Management

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
Function (legacy)
Map each attachment
Code node, mode 'Run Once for All Items'

Nodes used (3)

Nextcloud

What it does

This workflow will take all emails you put into a certain folder, upload any attachements to Nextcloud, and mark the emails as read (configurable). Attachements will be saved with automatically generated filenames: 2021-01-01From-Sender-NameFilename-of-attachement.pdf Instructions: 1. Allow lodash to be used in n8n (or rewrite the code...) NODEFUNCTIONALLOWEXTERNAL=lodash (environment variable) 2. Import workflow 3. Set credentials for Email & Nextcloud nodes 4. Configure to use correct folder / custom filters 5. Activate Custom filter examples: - Only unread emails: Custom Email Config = "UNSEEN" - Filter emails by 'to' address: Custom Email Config = "TO", "[email protected]"

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.