akamai / NetStorageKit-Node

Akamai NetStorage API for Node
Apache License 2.0
20 stars 15 forks source link

unable to pass Optional action header field variables in upload action #11

Open Vignesh291292 opened 6 years ago

Vignesh291292 commented 6 years ago

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) } });