pdfUrl = storage.getFileDownload(appwriteConfig.bucketId, doc.pdf);
console.log("getFileView awaited result:", pdfUrl, "| type:", typeof pdfUrl);
I was expecting to get a resource URL like the docs suggest but instead I get:
getFileView awaited result: {"_h": 0, "_i": 0, "_j": null, "_k": null} | type: object
What am I even looking at? And if I await the result I get an empty array []
TL;DR
Method getFileDownload actually downloads the file data. Instead, use another method to get the URL. The current result is an empty object, not a URL.