![]() ![]() My code looks as follows: var http = require('http') ![]() The method echoes the widget metadata in the response. The Wookie Server API reference for this particular request looks as follows: The request sent by theĬlient was syntactically incorect (No file uploaded to server). But I get the following error response:Įrror: No file found uploaded to the server. I create a http server in node, prepare the POST request to the Wookie REST API, get *.zip file stream with fs.createReadStream() and I stream it with pipe(). I have *.wgt file which is stored on the node.js server. I have followed node.js documentation of the http server and fs and two other posts on stackoverflow ( Node.js POST File to Server and how to upload a file from node.js) but I did not managed this to work. I try to send *.wgt file (which is valid *.zip file) with POST request from node.js to other server on which Wookie Server is runinng.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |