pub fn prepare(name: String, bytes: Vec<u8>) -> Result<Media, MediaError>
The file called name that bytes are, ready to be sent: a JPEG, a PNG or a WebP as the picture and no more (see the module), and anything else as it is.
name
bytes