SERVER / FILE STORAGE
Persist bounded server files
file is Dowe's server-only storage declaration for immutable artifacts, exports, and generated media. The shared Rust runtime owns paths, integrity checks, and asynchronous host I/O.
1 / OPERATIONS
Write, read, inspect, and delete
Every declaration names its result first. root selects the operator-configured storage directory and path must resolve below that root.
handler manageArtifact
request payload source:"bytes"
file stored source:"write" root:env.STORAGE_ROOT path:req.params.hash data:payload sha256:req.params.hash
file available source:"exists" root:env.STORAGE_ROOT path:req.params.hash
file artifact source:"read" root:env.STORAGE_ROOT path:req.params.hash
file removed source:"delete" root:env.STORAGE_ROOT path:req.params.hash
return json:{ stored:stored available:available removed:removed }Operation | Result |
|---|---|
No dataThere are no records to display | |
2 / STORAGE BOUNDARY
Keep every path confined
Paths must be non-empty and relative. Dowe rejects absolute paths, dot traversal, and symlinks below the configured root.
Rule | Behavior |
|---|---|
No dataThere are no records to display | |