Ethiraj Ganesan
Ethiraj Ganesan

Reputation: 1

Error: ENOENT: no such file or directory, open '/tmp/exampletest.png' in Catalyst Appsail

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

Answers (0)

Related Questions