Reputation: 1
I'm working on a use case where I need to generate an image file from base64 data and write it to a temporary directory. Once the file is successfully written to the temporary directory, I will upload it to the Catalyst file store. However, while performing this process, I am facing an error: "ENOENT: no such file or directory, open '/tmp/exampletest.png'".
let test = await app
.filestore()
.folder("folderID")
.uploadFile({
code: fs.createReadStream(`/tmp/exampletest.png`),
name: "testedFile.png",
});
console.log("test :", test);
Upvotes: 0
Views: 15