Skip to main content

WIRE_ORIGINAL_CONTENT_TYPES

Constant WIRE_ORIGINAL_CONTENT_TYPES 

Source
pub const WIRE_ORIGINAL_CONTENT_TYPES: &[&str];
Expand description

The original media types the upload protocol’s closed content_type enum names for this protocol version (server-side validation, invariant 5). Every other blob — and every original whose type is not here — declares OPAQUE_CONTENT_TYPE, which the enum also names.

The enum is closed per protocol version, so it cannot name every format a user owns. An original is never refused for its type (SSoT: thumbnails § Media Is Rawshift’s): a RAW, an AVI, a Matroska video or a file of no known kind uploads as opaque bytes, and its true type travels inside the encrypted sidecar, where a restore reads it back. The E2E suite fails if this list names a type the server’s default enum does not.