# N8N\_DEFAULT\_BINARY\_DATA\_MODE=filesystem doesn't work for AWS S3 large file downloads

**URL:** <https://community.n8n.io/t/n8n-default-binary-data-mode-filesystem-doesnt-work-for-aws-s3-large-file-downloads/266417>\
**Category:** Questions\
**Tags:** aws-s3\
**Created:** [17. Februar 2026 um 19:41 UTC](https://community.n8n.io/t/n8n-default-binary-data-mode-filesystem-doesnt-work-for-aws-s3-large-file-downloads/266417 "2026-02-17T19:41:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![InScienceWeTrust](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@InScienceWeTrust](https://community.n8n.io/u/InScienceWeTrust)\
**Post date:** [17. Februar 2026 um 19:41 UTC](https://community.n8n.io/t/n8n-default-binary-data-mode-filesystem-doesnt-work-for-aws-s3-large-file-downloads/266417/1 "2026-02-17T19:41:09Z")

</div>

## Describe the problem/error/question

I get OOM when my AWS S3 node tries to download file. I have binary data mode set to filesystem as others suggest:

$ env | grep BINARY  
N8N\_BINARY\_DATA\_MANAGER\_MODE=filesystem  
N8N\_DEFAULT\_BINARY\_DATA\_MODE=filesystem

But it still consumes all of my RAM memory and eventually I get OOM. I use “AWS node” to download file and then pipe it to “Write Files to Disk” to persist it to my folder. It fails during AWS node execution, so I don’t think it has anything to do with piping.

## What is the error message (if any)?

n8n may have run out of memory while running this execution

## Please share your workflow

## Information on your n8n setup

- n8n version: 2.1.3
- Database (default: SQLite): postgresdb
- n8n EXECUTIONS\_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: Linux

---

<div class="post-metadata">

**Author:** ![achamm](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/achamm/32/143734_2.png) [@achamm](https://community.n8n.io/u/achamm)\
**Post date:** [17. Februar 2026 um 19:55 UTC](https://community.n8n.io/t/n8n-default-binary-data-mode-filesystem-doesnt-work-for-aws-s3-large-file-downloads/266417/2 "2026-02-17T19:55:58Z")

</div>

Hey @InScienceWeTrust, the filesystem binary mode settings you have are correct but unfortunately the AWS S3 node still loads the entire file into memory before it can write to the filesystem storage, so for really large files you’re going to hit OOM regardless of those env vars. This is kind of a known limitation with how the node handles downloads internally.

What I’d suggest is skipping the S3 node entirely for big files and using the Execute Command node or a Code node to run the AWS CLI directly, something like `aws s3 cp s3://bucket/key /home/node/.n8n-files/filename` which will stream the file properly without loading it all into RAM. You’ll need to make sure the AWS CLI is installed in your container and credentials are configured (either mount your ~/.aws folder or set AWS\_ACCESS\_KEY\_ID and AWS\_SECRET\_ACCESS\_KEY env vars).

---

<div class="post-metadata">

**Author:** ![InScienceWeTrust](https://avatars.discourse-cdn.com/v4/letter/i/f475e1/32.png) [@InScienceWeTrust](https://community.n8n.io/u/InScienceWeTrust)\
**Post date:** [17. Februar 2026 um 19:57 UTC](https://community.n8n.io/t/n8n-default-binary-data-mode-filesystem-doesnt-work-for-aws-s3-large-file-downloads/266417/3 "2026-02-17T19:57:51Z")

</div>

Got it, that was my plan B, just wanted to double check this before pulling a trigger. Thank you @achamm

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [18. Mai 2026 um 19:58 UTC](https://community.n8n.io/t/n8n-default-binary-data-mode-filesystem-doesnt-work-for-aws-s3-large-file-downloads/266417/4 "2026-05-18T19:58:08Z")

</div>

Geschlossen, am 18. Mai 2026 um 19:58 UTC

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