Search code examples
node.jsiisnode

Access to directories and files out of nodejs project


Is there any way to access some directories or files out of nodejs project? I have nodejs project running on IIS and I want to create and save some files to c:\myFolder. But it seems this is from IIS that does not allow to access directories and files out of project.


Solution

  • enter image description here

    I think the solution is using fs library. but you have to grant permission in IIS to do that. The way that I'm using for this job is changing the identity of pooling in IIS. But be aware of vulnerabilities.