Fix incorrect upload file path
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good

This commit is contained in:
Dany LE 2023-01-04 21:39:46 +01:00 committed by GitHub
parent cab479a0fb
commit 5d7a0f8b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{