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

indicate filename/mime-type to ipfs add -w #1055

Open
Fil opened this issue Apr 11, 2015 · 2 comments
Open

indicate filename/mime-type to ipfs add -w #1055

Fil opened this issue Apr 11, 2015 · 2 comments
Labels
topic/commands Topic commands

Comments

@Fil
Copy link

Fil commented Apr 11, 2015

doing ipfs add -w <( curl http://ipfs.io/docs/commands/ )

would like to be able to do something like:
ipfs add -w --filename=commands.html <( curl http://ipfs.io/docs/commands/ )

or
ipfs add -w --mime-type=text/html <( curl http://ipfs.io/docs/commands/ )

@Kubuxu
Copy link
Member

Kubuxu commented Feb 8, 2017

Currently it isn't possible directly. You can do it by either creating desired directory structure in file-system add adding with -w or using files API:

HASH=$(ipfs add -q <( curl http://ipfs.io/docs/commands/ ))
ipfs files mkdir -p /tmp/randomname
ipfs files cp /ipfs/$HASH /tmp/randomname/commands.html
ipfs files stat --hash /tmp/randomname

@momack2 momack2 added this to Inbox in ipfs/go-ipfs May 9, 2019
@lizelive
Copy link

lizelive commented Mar 10, 2022

is this still not possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/commands Topic commands
Projects
No open projects
Development

No branches or pull requests

4 participants