![]() Let makePath = function(root, path, data) Server-side: NodeJS let http = require('http') The example below is not tested, feel free to test & fix as necessary.įor the client-side code interacting with the "server-side" example below, create an HTML form that uses: method="PUT" and the fields as required by the vars -OR- use an AJAX method to accomplish the same. This assumes you are running NodeJs on Linux and that the file/folder (path) is not recursive. The following describes a JavaScript solution with code for server-side that you can just copy & paste and modify to your needs. If you work with another language on the server, like PHP, you can find more info about it here: ![]() You can find extensive documentation on either of these "JavaScript" solutions however, there are other "JavaScript" solutions available, NodeJS is very popular. server side only requires "Node.js" available here:. ![]() client side requires a package called: "NWJS" available here:.For a JavaScript solution for either client-side or server-side, you can use Node.js however,
0 Comments
Leave a Reply. |