for body you can provide any parameter accepted by http.request write function req.write(body) https://nodejs.org/api/http.html, when using this, you might need to add the content-length and content-type header in addition with the http method POST or PUT
Just new to NDH (less than 24Hrs) and able to successful download files which requires Bearer token, tricky mimetype (using file:callback(name,path,mimeType) and few other stuff.
I am writing kind of pipeline where we need to download file from server1 and upload it to server2 (S3/Google Drive etc). Both server1 and server2 Download/UpLoad/files/directory - Read,Create,Delete,List etc operations are similar to Oauth2/OIDC/Jwt-ish
Question 1:
Just curious Is it possible to upload file using NDH? It looks like mostly Upload is PUT/Post with uploadStrem/File with Payload/data etc. And most of the things seems available with NDH
Has anyone tried? Any obvious point to take care?
BTW: Thanks to Original author for writing such Mature and extended code, Which covers almost all use cases without any extra dependancy
Hi
Just new to NDH (less than 24Hrs) and able to successful download files which requires Bearer token, tricky mimetype (using file:callback(name,path,mimeType) and few other stuff.
I am writing kind of pipeline where we need to download file from server1 and upload it to server2 (S3/Google Drive etc). Both server1 and server2 Download/UpLoad/files/directory - Read,Create,Delete,List etc operations are similar to Oauth2/OIDC/Jwt-ish
Question 1: Just curious Is it possible to upload file using NDH? It looks like mostly Upload is PUT/Post with uploadStrem/File with Payload/data etc. And most of the things seems available with NDH
Has anyone tried? Any obvious point to take care?
BTW: Thanks to Original author for writing such Mature and extended code, Which covers almost all use cases without any extra dependancy
Raxit