akamai / akamai/NetStorageKit-Node

unable to pass Optional action header field variables in upload action

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
18
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the ns.upload entry point and how it assembles the NetStorage action header; the payload does not name implementation files or tests. Clarify the intended API for supplying optional fields such as index-zip and md5, then verify that the resulting header is sent correctly and add or update coverage for the chosen behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.