Function write_logo_file
Source pub async fn write_logo_file(
storage_dir: &Path,
logo_id: Uuid,
ext: &str,
bytes: Bytes,
) -> Result<String, Error>
Expand description
Write a logo’s image bytes to disk, returning the filename that should
be stored in the DB.
§Errors
Returns an Error::Io if the file cannot be written.