nodejs-upload modified by samicelus, using this with Samicelus-ctrl This version is created based on billfeller's nodejs-upload-image-demo: billfeller's nodejs-upload-image-demo
Make sure that Node.js and graphicsMagick installed on your server.
- node-v0.10.26-x64 -node for windows 64bit nodejs' official site
Then install graphicsMagick on the target PC:
- GraphicsMagick-1.3.23-Q16-win64-dll -a lite tool for image processing with command. GraphicsMagick's official site
Note that this service is mean to install in the same server as Samicelus-ctrl, and run with its socketManager.js Samicelus-ctrl
Edit the config.json
{
"uploadServerPort":5901,
"localUDPPort":7006,
"socketManagerUDPPort":7007,
"rootPath":"D:/productData/nodejs_upload/"
}Note that browser access the uploadservice through uploadServerPort, uploadservice inform socketManager using UDP via socketManagerUDPPort. rootPath is the root path of this folder.
Run the service by entering "node "+file name in the command line
node startMain.js