A streamed file written to a temporary file before it is stored: that gives the length an upload needs up front without holding the file in memory, and leaves nothing stored when the writer fails.
A streamed file written to a temporary file before it is stored: that gives the length an upload needs up front without holding the file in memory, and leaves nothing stored when the writer fails.
(remove-abandoned! dir idle)Delete the spools in dir nobody has written to for idle, a Duration:
left by a process that died mid-write. One being written is newer.
Delete the spools in `dir` nobody has written to for `idle`, a Duration: left by a process that died mid-write. One being written is newer.
(with-spooled write! f)(with-spooled write! dir f)Call (f path) on what write! wrote, spooled to directory dir, the
system's temporary one when nil, and delete the file afterwards unless f
moved it.
Call `(f path)` on what `write!` wrote, spooled to directory `dir`, the system's temporary one when nil, and delete the file afterwards unless `f` moved it.
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 |