Where are files upload to with the chat node

Hi, wenn a user uploads file in the chat node and I don’t handle them - where are they stored? I guess they are a binary in the current items list but are they stored in memory? How long do they take up memory? Are they destroyed with the next chat message?

Thank you

Hey @pfiadDi
I think it’s in memory.
I’ve seen posts about memory issues when handling large files and there is also this N8N setting N8N_DEFAULT_BINARY_DATA_MODE
Which says by default binary data is stored in memory but you also have the option to setup binary data storage on the filesystem or in S3.

When they are destroyed I don’t know. Maybe after the workflow execution ends, maybe when the node.js garbage collector reclaims the memory.

Hi thank you. I think you are right - I also checked the binaryFolder - it’s empty after I uploaded a file in chat and didn’t do anything else with it.

Thank you for your response

1 Like

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