Required The path the root directory of your static website or other content that you want to publish to IPFS.
web3_token
Required API token for web3.storage
Show advanced options: wrap_with_directory, include_hidden, web3_api
wrap_with_directory
Defaultfalse
Should the path_to_add be wrapped in a diretory when creating the IPFS DAG. For most folks using this action the default of false is fine.
This is the opposite of the default that web3.storage uses, as this action is commonly used to add a directory that contains a static website to IPFS. In that case you want the path_to_add to become the root cid so you can host your site at https://<cid>.ipfs.dweb.link rather than https://<cid>.ipfs.dweb.link/<path_to_add>.
If you do want to capture the path_to_add path itself in the IPFS DAG then you want to set wrap_with_directory:true.
请发表评论