ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.2k stars 3.02k forks source link

need api for combine two files in kubo #10348

Closed hunjixin closed 7 months ago

hunjixin commented 9 months ago

Checklist

Description

I have a requirement for uploading large files in chunks, but I have found that there is no suitable interface in the existing implementation for the final file merging.

lidel commented 8 months ago

@hunjixin If you are ok with append-only process, and building trickle-DAG instead of a balanced-DAG, you may try using MFS and /api/v0/files/write (HTTP RPC) or ipfs files write (CLI).

If this is not enough, propose the command you'd like to see.

hunjixin commented 8 months ago

@hunjixin If you are ok with append-only process, and building trickle-DAG instead of a balanced-DAG, you may try using MFS and /api/v0/files/write (HTTP RPC) or ipfs files write (CLI).

If this is not enough, propose the command you'd like to see.

mfs is great but not enough. my demand is split a large file to many smaller chunk. user send chunk file one by one,and my serve put this chunk file to mfs, if user upload all chunks, my server need to recover the file from this chunks. but i dont want to read file from ipfs again and append this chunk to a mfs file in ipfs, i want a api to combine files in ipfs.
this can be more efficient for my serve.

If you think this is reasonable, I can implement one.

github-actions[bot] commented 8 months ago

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

github-actions[bot] commented 7 months ago

This issue was closed because it is missing author input.