Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need api for combine two files in kubo #10348

Closed
3 tasks done
hunjixin opened this issue Feb 21, 2024 · 4 comments
Closed
3 tasks done

need api for combine two files in kubo #10348

hunjixin opened this issue Feb 21, 2024 · 4 comments
Labels
kind/enhancement A net-new feature or improvement to an existing feature kind/stale need/author-input Needs input from the original author

Comments

@hunjixin
Copy link

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

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.

@hunjixin hunjixin added the kind/enhancement A net-new feature or improvement to an existing feature label Feb 21, 2024
@hunjixin hunjixin changed the title a api for combine two files in kubo need api for combine two files in kubo Feb 22, 2024
@lidel
Copy link
Member

lidel commented Mar 26, 2024

@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.

@lidel lidel added the need/author-input Needs input from the original author label Mar 26, 2024
@hunjixin
Copy link
Author

hunjixin commented Mar 26, 2024

@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.

Copy link

github-actions bot commented Apr 2, 2024

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

Copy link

github-actions bot commented Apr 9, 2024

This issue was closed because it is missing author input.

@github-actions github-actions bot closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature kind/stale need/author-input Needs input from the original author
Projects
None yet
Development

No branches or pull requests

2 participants