Skip to content
Back

[Node.js SDK] Bypass 2GB file limit?

  • 0
  • Self Hosted
  • Web
  • Storage
AXYZE
15 Sep, 2025, 10:06

Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB

Bucket limit etc. is setup correctly, the issue is caused by SDK. Tried to fix this with LLMs (Claude/GPT) and they wrote that "There is no way to upload files >2GB using the current Node.js SDK" / "Request streaming upload support from the Appwrite team for the Node.js SDK."

Is my only option completely ignoring the SDK and going with REST API instead?

TL;DR
Node.js SDK has a 2GB file size limit for reads. One developer suggests a modification to overcome this limitation. Attempted fixes with InputFile.fromPath or InputFile.fromBuffer result in a file size error. The AppWrite team does not currently offer support for files larger than 2GB in the Node.js SDK. Consider using the REST API as an alternative.
AXYZE
15 Sep, 2025, 10:08

Here's article I've found that says "Node.js has a (poorly) documented 2GB size limitation on file reads" and presents some idea how to handle this, but I cannot do it without modyfing node-appwrite package https://smoores.dev/post/overcoming_io_limits/

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more