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-streamotherwise. - measure
- The size and SHA3-256 of the file at
path. - safe_
name - A name for
namethat is safe as one path component: no separators, no control characters, no leading dots;attachmentwhen nothing is left.