HackStackMasterOriginal post
Rank 1: Thread
how to read html file from storage in function
const invoiceTemplate = await storage.getFileDownload(
process.env.BUCKET_ID,
'<File ID>'
)
what will be the result of above code ? I want to read the file as html string
Have anyone worked on this ?
Summary
Developers are asking how to read an HTML file from storage in a function. The provided code snippet using `getFileDownload` from storage seems to be the solution.