wikidb.attach_media

wikidb

attach_media(ctx, name, blob, mime) -> ok, err

Store a media blob under a name

The name follows the entry key rules, so pass a file name through sanitize_name first. mime defaults to application/octet-stream. A name that exists is overwritten.