From 5d7a0f8b4991754f3088e7284dc4f16ddb13c5da Mon Sep 17 00:00:00 2001 From: Dany LE Date: Wed, 4 Jan 2023 21:39:46 +0100 Subject: [PATCH] Fix incorrect upload file path --- http_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_server.c b/http_server.c index c093208..e39c336 100644 --- a/http_server.c +++ b/http_server.c @@ -1459,7 +1459,7 @@ void *decode_multi_part_request_data(void *data) } else { - file_path = __s("%s%s.%u", server_config.tmpdir, part_file, (unsigned)time(NULL)); + file_path = __s("%s/%s.%u", server_config.tmpdir, part_file, (unsigned)time(NULL)); fd = open(file_path, O_WRONLY | O_CREAT, 0600); if (fd > 0) {