File Block
An attachment of any kind, referenced by an ipfs:// link, with its file name and size.Extends
| id The block's permanent identity inside its document. | inherited | |||||||||||||
| revision Output only: CID of the last Change that modified this block. | optional · inherited | |||||||||||||
| type Block type tag, always `File`. | File | optional | ||||||||||||
| link The attached file — an `ipfs://<cid>` URL. | ||||||||||||||
| attributes File details and parent-layout attributes. | optional | |||||||||||||
other fields: | ||||||||||||||
A file block is an attachment of any kind. link is required and is an ipfs://<cid> file. Attributes: name (the file name shown to readers), size (bytes; older documents stored it as a string, and readers coerce it), and the parent-layout pair childrenType and columnCount. The block does not store the file's type. The daemon serves the bytes as application/octet-stream, and the reader detects the type from the bytes.
See also
Files: how files are stored and served.
block/image and block/video: media blocks.
ipfs-url: the ipfs:// reference type.
Blocks: the block model.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime
Powered by Seed HypermediaOpen App