I want to create a function that removes a file from the server. I intend to use this function to restore settings (i.e. db files) to their default state. I run my server using the following command:
node server.js
I am aware of node.js's File System but I don't know how to use it on the browser side. I did some light reading on the issue and it seems to me that this kind of interaction is not possible due to security reasons. How do I go about this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…