clipped2
This commit is contained in:
@@ -71,6 +71,7 @@ pub async fn load_file_from_s3(
|
||||
}
|
||||
|
||||
/// Генерирует ключ с правильным расширением на основе MIME-типа.
|
||||
#[allow(clippy::collapsible_if)]
|
||||
pub fn generate_key_with_extension(base_key: String, mime_type: String) -> String {
|
||||
let mime: mime::Mime =
|
||||
mime::Mime::from_str(&mime_type).unwrap_or(mime::APPLICATION_OCTET_STREAM);
|
||||
|
||||
Reference in New Issue
Block a user