diff --git a/src/main.rs b/src/main.rs index 0cf41c2..fa0e5f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -396,6 +396,10 @@ async fn upload_file( let response = WrappedResponse::Tags(final_tag_set.into_iter().collect::>()); Ok((StatusCode::OK, Json(response))) } else { + if !file_type.starts_with("image/") { + log::warn!("warning: mimetype {} is not image/", file_type); + } + let json_response = send_image_to_dd(file_contents.to_vec(), file_name, &file_type, &options).await?; Ok((StatusCode::OK, Json(json_response)))