Cannot create folder after hosting web service

create folder using node.js fs module not working when hosted in render web service

const filePath = `${path.dirname(__dirname)}\\public\\pdfs\\${filename}`;
const dirname = path.dirname(filePath);

// create a new folder for user if he doesn't have an existing
if (!fs.existsSync(dirname)) {
  fs.mkdirSync(dirname);
}

// this is my code snippet, please let me know if you need any further clarifications
this is my render web service link : https://pdf-editor-server.onrender.com/

1 Like

are you getting any error message ? if yes post it here

I see that you’ve already initiated a support ticket with us. To avoid any confusion or duplicate efforts, let’s continue the conversation there

Jérémy.
Render Support, UTC+3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.