Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
feat: more options to ipfs.files.add
Browse files Browse the repository at this point in the history
  • Loading branch information
Moejoe90 authored and daviddias committed Nov 14, 2017
1 parent dffc9e7 commit 989d71f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/files/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ module.exports = (send) => {
} else if (opts.hashAlg != null) {
qs.hash = opts.hashAlg
}
if (opts['only-hash'] != null) {
qs['only-hash'] = opts['only-hash']
}
if (opts.pin != null) {
qs.pin = opts.pin
}

const request = { path: 'add', files: files, qs: qs, progress: opts.progress }

Expand Down

0 comments on commit 989d71f

Please sign in to comment.