Staged files: bytes a client hands the JVM, kept in the session's upload directory until the session ends. Staging is all that happens here — where a file belongs, and whether it is loaded, moved or only read, is the caller's to decide in ordinary Clojure.
The directory is the record: a listing reads it, so a file moved out or deleted is gone from the listing with nothing to keep in step.
Staged files: bytes a client hands the JVM, kept in the session's upload directory until the session ends. Staging is all that happens here — where a file belongs, and whether it is loaded, moved or only read, is the caller's to decide in ordinary Clojure. The directory is the record: a listing reads it, so a file moved out or deleted is gone from the listing with nothing to keep in step.
The largest file staged, in bytes. A bound against a runaway upload filling the temp volume, not a judgment about what is worth sending.
The largest file staged, in bytes. A bound against a runaway upload filling the temp volume, not a judgment about what is worth sending.
(staged dir)The regular files beneath dir, by name.
Output shape: [{:name String, :path String, :size Long, :at Inst} …]
The regular files beneath `dir`, by name.
Output shape:
[{:name String, :path String, :size Long, :at Inst} …](store! sid name in)Stage the bytes of in as name in sid's upload directory, replacing
a file already staged under that name — re-sending an edited file is the
expected use. Written beside the directory and moved in whole, so a
listing or a load never sees half a file. Throws ex-info carrying an
HTTP :status when refused.
Output shape: {:name String, :path String, :size Long}
Stage the bytes of `in` as `name` in `sid`'s upload directory, replacing
a file already staged under that name — re-sending an edited file is the
expected use. Written beside the directory and moved in whole, so a
listing or a load never sees half a file. Throws `ex-info` carrying an
HTTP `:status` when refused.
Output shape:
{:name String, :path String, :size Long}cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |