J1nSakaiOriginal post
Web Developer
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!
Summary
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.