unable to pass Optional action header field variables in upload action
Vignesh291292 opened this issue · comments
could you please help.how do pass Optional action header field variables in upload action
Optional action header field variables
Along with the standard action header content, the following optional fields can be included. Each must be appended to the end of the header, prefaced by an ampersand (“&”).
index-zip=2:
md5=[hash]..etc
ns.upload(local_source, netstorage_destination, (error, response, body) => {
if (error) { // errors other than http response codes
console.log(Got error: ${error.message}
)
}
if (response.statusCode == 200) {
console.log(body)
}
});