This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
proposal: Files API - dot return DAGNodes on Add #29
Closed
Description
I've been seeing a lot of users getting confused with the fact that we return DAGNodes on a files add for each file. A DAGNode contains all the information that we might would have hoped for, like the multihash and size of the tree, however, since it has a data field, users are getting confused thinking that the data of that file is on that data field, while in fact, that datafield is just one of the pieces of the whole file.
What if we changed the API to instead of returning DAGNodes, to return just an object with path, multihash and size?
Metadata
Metadata
Assignees
Labels
No labels