feat: update metadata field names to use mime_type and mime_encoding

This commit is contained in:
Andrew Phillips
2025-08-18 09:44:27 -03:00
committed by Andrew Phillips (aider)
parent 18a3f1b36e
commit 05b2c1b9bd
3 changed files with 64 additions and 13 deletions

View File

@@ -505,7 +505,7 @@ async fn get_item_raw_content(item: &db::Item, data_dir: &PathBuf, conn: &mut ru
let mime_type = meta_entries
.iter()
.find(|m| m.name == "file.mime")
.find(|m| m.name == "mime_type")
.map(|m| m.value.clone())
.unwrap_or_else(|| "application/octet-stream".to_string());