Skip to main content

Module attachments

Module attachments 

Source
Expand description

Attachments over HTTP. The rules are in crate::attach.

An upload is the file’s bytes as the request body — not a multipart form — with its media type as Content-Type and its name, kind and note in the query string. It streams to disk as it arrives and is refused with 413 the moment it passes the limit. A download streams from disk.

Structs§

DownloadQuery
ListQuery
UploadQuery

Functions§

download
Stream a file.
info
Metadata and server-computed edit permission for a document tab.
list
A part’s files, and one revision’s.
remove
Remove an attachment.
replace
upload_to_part
Attach a file to a part.
upload_to_revision
Attach a file to one revision.