From 1aa3728b8ae356e25b02b6654c960943b77cdbd8 Mon Sep 17 00:00:00 2001 From: AppleTheGolden Date: Mon, 22 Sep 2025 17:20:32 +0200 Subject: [PATCH] Fix filetype detection --- copyparty/httpcli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 41412c62..b19ffde1 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -6883,9 +6883,9 @@ class HttpCli(object): ) if "rmagic" in self.vn.flags: - item["mime"] = guess_mime(fn, item["_fspath"]) + item["mime"] = guess_mime(item["name"], item["_fspath"]) else: - item["mime"] = guess_mime(fn) + item["mime"] = guess_mime(item["name"]) # Make sure we can actually generate JPEG thumbnails if (