From c3e5cdcc7f169137e9d9c754622a674c9138656b Mon Sep 17 00:00:00 2001 From: morganamilo Date: Sat, 10 May 2025 12:18:28 +0100 Subject: [PATCH] Don't append .bin to unnamed files .bin gets appended to all unnamed files uploaded via a PUT request. This happens even if a random file name is specified. .bin files are quite rare so I don't think it's a good extension to slap on to files even if they happen to be binary in nature. Instead we should just let the file remain extensionless. --- copyparty/httpcli.py | 1 - 1 file changed, 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index a68e2831..8478bd67 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2100,7 +2100,6 @@ class HttpCli(object): suffix = "-{:.6f}-{}".format(time.time(), self.dip()) nameless = not fn if nameless: - suffix += ".bin" fn = "put" + suffix params = {"suffix": suffix, "fdir": fdir}