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`.
Fileoptional
link
The attached file — an `ipfs://<cid>` URL.
attributes
File details and parent-layout attributes.
optional
childrenType
How this block lays out its children — a children type such as `Unordered` or `Grid`.
optional
columnCount
Number of columns the children occupy when `childrenType` is `Grid`.
optional
size
File size in bytes.
optional
name
File name shown to readers.
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

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime