ipfs / kubo

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

need api for combine two files in kubo #10348

Closed hunjixin closed 1 month ago

hunjixin commented 2 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 1 month 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 1 month 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 1 month 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 1 month ago

This issue was closed because it is missing author input.