You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want the file name to be stored in the DAG, you have to enclose your file within a directory. To do that, call setWrapWithDirectory() on your AddArgs.Builder:
AddArgsargs = AddArgs.Builder.newInstance()
.setWrapWithDirectory()
.build();
List<MerkleNode> tree = ipfs.add(file, args);
怎么在返回的访问路径上加上文件名称啊,例如http://127.0.0.1:8080/ipfs/QmTGK9aXJsgw53eSa4CVG4zZSiDrK2mQg8Q5nVNtiYuFUR/文件名称
The text was updated successfully, but these errors were encountered: