Skip to main content

File

This page is auto-generated from the formations OpenAPI spec. Do not edit manually — run pnpm generate-formations-resource-docs to regenerate.

Registers a file record within the formation's project.

Syntax

type: file
properties:
storage_type: String
storage_path: String
path: String
filename: String
content_type: String
size: Integer
metadata: String

Output

The physical resource ID is the public ID of the created resource. Reference it from other resources with a ref expression:

some_field:
ref: MyFile

Properties

storage_type

Storage backend type

Required: Yes Type: String


storage_path

Path where the file is stored in the storage backend

Required: Yes Type: String


path

Logical path of the file within the project

Required: No Type: String Nullable: Yes


filename

Name of the file

Required: No Type: String Nullable: Yes


content_type

MIME type of the file

Required: No Type: String Nullable: Yes


size

File size in bytes

Required: No Type: Integer Nullable: Yes


metadata

JSON string with additional metadata

Required: No Type: String Nullable: Yes