Skip to main content

Module files

Module files 

Source
Expand description

Attachment files on this side: staging an upload inside the SimpleX folder (it only sends files from there), measuring, and delivering a checked download under a safe name.

Functions§

guess_mime
A media type from a file name’s extension; application/octet-stream otherwise.
measure
The size and SHA3-256 of the file at path.
safe_name
A name for name that is safe as one path component: no separators, no control characters, no leading dots; attachment when nothing is left.