final class StagedUpload (View source)

internal  UploadService owns the snapshot lifecycle and removes it after publication or failure.
 

Identifies one sealed private snapshot whose size and digest were measured while its bytes were written.

Methods

__construct(string $path, string $clientFilename, int $sizeBytes, string $sha256, StagedUploadLease|null $lease = null)

Retains the private path and measured identity used to detect unexpected snapshot mutation.

string
path()

Returns the private local path used by server-side validators and publication infrastructure.

string
string

Returns the untrusted client basename retained only for extension-policy evaluation.

string
int

Returns the authoritative byte count observed while creating the snapshot.

int
string
sha256()

Returns the digest of the exact bytes accepted into private staging.

string
void

Releases the internal lifecycle lock after publication or failure cleanup begins.

void

Details

__construct

__construct(string $path, string $clientFilename, int $sizeBytes, string $sha256, StagedUploadLease|null $lease = null)

Retains the private path and measured identity used to detect unexpected snapshot mutation.

Parameters

string $path
string $clientFilename
int $sizeBytes
string $sha256
StagedUploadLease|null $lease

path

string path()

Returns the private local path used by server-side validators and publication infrastructure.

Return Value

string

clientFilename

string clientFilename()

Returns the untrusted client basename retained only for extension-policy evaluation.

Return Value

string

sizeBytes

int sizeBytes()

Returns the authoritative byte count observed while creating the snapshot.

Return Value

int

sha256

string sha256()

Returns the digest of the exact bytes accepted into private staging.

Return Value

string

releaseLease

void releaseLease()

Releases the internal lifecycle lock after publication or failure cleanup begins.

Return Value

void