Skip to content
Back

Can't download a file through the AppWrite Storage "getFileDownload()" method.

  • 0
  • Web
  • Storage
J1nSakai
11 Aug, 2025, 09:41

Heya! SO I am learning backend using Node.js. I am using AppWrite for storage, and in the application I want the files to be downloaded, which are stored by the user. I read the docs and as written there, I used the "getFileDownload()" method for the file download. In the docs, it's written that this method returns the Resource URL, which I thought was going to make the file downloadable. But, it turns out, it returns an ArrayBuffer. Been stuck on the for a few hours. Any help would be appreciated!

TL;DR
Developer is having trouble downloading a file using the AppWrite Storage "getFileDownload()" method. They are expecting a Resource URL but receiving an ArrayBuffer instead. The solution to this issue is to convert the ArrayBuffer to a Blob and then create a URL object from the Blob.
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