web3.storage icon indicating copy to clipboard operation
web3.storage copied to clipboard

Add ability to link uploaded file directly to CID

Open dmh1974 opened this issue 2 years ago • 1 comments

currently all uploaded files get put in a directory cid by default

dmh1974 avatar Jun 09 '22 18:06 dmh1974

If you just want to upload a file without the wrapping directory you can do it today with JS client https://web3.storage/docs/reference/js-client-library/#store-files providing the option wrapWithDirectory: false to have the root of the upload to be the provided file.

However, if the intention of this issue is to add ability to link uploaded file directly to CID, that is, link a new file with a previously uploaded directory with given CID this won't be possible by IPFS nature.

vasco-santos avatar Aug 15 '22 14:08 vasco-santos

Closing due to inactivity. If you need more info, feel free to re-open.

olizilla avatar Oct 17 '22 14:10 olizilla