Skip to content

Upload Locked File Node

Data/Files/Locked

Stores a file write-once and revision-safe: once committed nobody can change or delete it until its retention ends. Fails when storage is full

locked_upload_itemdataLong running
Inputs10
Outputs3
Security exposure3/10
Packagedata

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
3/10Low
PrivacyPotential sensitivity of processed data.
5/10Medium
PerformanceRuntime or resource pressure.
6/10Medium
GovernancePolicy, audit, or compliance impact.
2/10Low
ReliabilityOperational stability considerations.
3/10Low
CostExternal or compute cost impact.
4/10Medium

Input Pins

10

In

Execution
exec_in

Start the request

File

Struct
path

File to lock; it is read twice, once to hash and once to upload

FlowPathFlowPath3 fields
pathstringrequired
store_refstringrequired
cache_store_refstring | null
Schema enforced

Scope

String
scope

project: shared with everyone in the project; user: private to the user running the flow

Default project
projectuser

Folder

String
folder

Folder to store the file in, such as invoices/2026; empty for the root

Name

String
name

Display name of the locked file; empty uses the file's name

Retention Days

Integer
retention_days

Days the version stays write-once and undeletable; 0 uses the server default. The server clamps it to its allowed range and ignores it under a bucket-wide policy

Default 0

Delete After Retention

Boolean
delete_after_retention

Delete the version automatically once its retention ends and no legal hold remains; otherwise it stays stored until someone deletes it. Project files need app admin rights

Default false

Comment

String
comment

Note stored with this version, such as why it was archived

Metadata

Struct
metadata

Optional JSON object stored with this version

objectobject0 fields
No named fields in this schema.
Default {}

If Exists

String
if_exists

error: fail when a file with this name already exists in the folder; new_version: add the upload as its next version

Default error
errornew_version

Output Pins

3

Out

Execution
exec_out

The file was uploaded, verified and locked

Locked File

Struct
file

The locked file with the uploaded version

LockedFileLockedFile34 fields
item_idstringrequired

Locked file ID, used by the other Locked File nodes.

app_idstringrequired

App the file belongs to.

scopeLockedScoperequired

Whether the file is shared by the project or private to a user.

variant 1constvariant

Shared by the whole project.

const "project"
variant 2constvariant

Private to one user.

const "user"
owner_idstring | null

Owning user for user-scoped files; null for project files.

namestringrequired

Display name, unique within its folder.

folderstringrequired

Virtual folder without leading or trailing slash; empty for the root.

pathstringrequired

Folder and name joined with "/", without a leading slash.

file_namestringrequired

File name the bytes of this version were uploaded as.

content_typestring | null

MIME type of this version.

sizeinteger:uint64required

Size of this version.

format uint64min 0
versioninteger | null

Version number starting at 1; null while pending or when the file has no version.

format uint32min 0
version_idstring | null

Version ID, used to download, extend, hold or purge this exact version.

statusanyOf (2)

Lifecycle state of this version: pending, locked or purged.

variant 1LockedVersionStatusvariant

Lifecycle state of a locked file version.

variant 1constvariant

Upload started but not committed yet.

const "pending"
variant 2constvariant

Committed and protected by its retention lock.

const "locked"
variant 3constvariant

Bytes deleted after the retention ended; the record is kept as evidence.

const "purged"
variant 2nullvariant
sha256string | null

Lowercase hex SHA-256 of the stored bytes.

checksum_verifiedbooleanrequired

Whether the storage provider or the server confirmed the SHA-256 of the stored bytes.

provider_version_idstring | null

Storage provider's version identifier (S3 VersionId, GCS generation or Azure version ID).

retention_modeanyOf (2)

Retention mode: governance or compliance.

variant 1LockedRetentionModevariant

How strictly the retention lock is enforced by the storage provider.

variant 1constvariant

Privileged storage administrators could lift the lock.

const "governance"
variant 2constvariant

Nobody, including the storage account owner, can lift the lock before it ends.

const "compliance"
variant 2nullvariant
retain_untilstring | null

Date until which the object cannot be modified or deleted (RFC 3339).

+16 more fields

Version

Struct
version

The uploaded version with its lock details

LockedItemVersionLockedItemVersion23 fields
idstringrequired

Version ID, used to download, extend, hold or purge this exact version.

item_idstringrequired

ID of the locked file this version belongs to.

versioninteger | null

Version number starting at 1, assigned at commit; null while pending.

format uint32min 0
statusLockedVersionStatusrequired

Lifecycle state: pending, locked or purged.

variant 1constvariant

Upload started but not committed yet.

const "pending"
variant 2constvariant

Committed and protected by its retention lock.

const "locked"
variant 3constvariant

Bytes deleted after the retention ended; the record is kept as evidence.

const "purged"
file_namestringrequired

File name the bytes were uploaded as.

content_typestringrequired

MIME type of the stored bytes.

sizeinteger:uint64required

Size of the stored bytes.

format uint64min 0
sha256stringrequired

Lowercase hex SHA-256 of the stored bytes.

checksum_verifiedbooleanrequired

Whether the storage provider or the server confirmed the SHA-256 of the stored bytes.

provider_version_idstring | null

Storage provider's version identifier (S3 VersionId, GCS generation or Azure version ID).

retention_modeLockedRetentionModerequired

Retention mode: governance or compliance.

variant 1constvariant

Privileged storage administrators could lift the lock.

const "governance"
variant 2constvariant

Nobody, including the storage account owner, can lift the lock before it ends.

const "compliance"
retain_untilstringrequired

Date until which the object cannot be modified or deleted (RFC 3339).

enforcementLockedEnforcementrequired

Whether the lock is set on the object or by a bucket-wide policy.

variant 1constvariant

A retention lock set on the stored object version itself.

const "object"
variant 2constvariant

A retention policy of the whole bucket or container.

const "bucket"
legal_holdbooleanrequired

Whether a legal hold blocks deletion regardless of the retention date.

delete_after_retentionboolean

Whether the server deletes the bytes automatically once the retention ends and no legal hold remains.

default false
commentstring | null

Comment given at upload.

metadataobject | null

Metadata given at upload.

uploaded_bystringrequired

User ID of the uploader.

+5 more fields

Node Info

Internal name
locked_upload_item
Category
Data/Files/Locked
Version
2