StagedUpload
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
Retains the private path and measured identity used to detect unexpected snapshot mutation.
Returns the private local path used by server-side validators and publication infrastructure.
Returns the untrusted client basename retained only for extension-policy evaluation.
Returns the authoritative byte count observed while creating the snapshot.
Returns the digest of the exact bytes accepted into private staging.
Releases the internal lifecycle lock after publication or failure cleanup begins.
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.
path
string
path()
Returns the private local path used by server-side validators and publication infrastructure.
clientFilename
string
clientFilename()
Returns the untrusted client basename retained only for extension-policy evaluation.
sizeBytes
int
sizeBytes()
Returns the authoritative byte count observed while creating the snapshot.
sha256
string
sha256()
Returns the digest of the exact bytes accepted into private staging.
releaseLease
void
releaseLease()
Releases the internal lifecycle lock after publication or failure cleanup begins.