mirror of
https://github.com/lxsang/ant-http
synced 2024-11-18 01:08:21 +01:00
Fix incorrect upload file path
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
This commit is contained in:
parent
cab479a0fb
commit
5d7a0f8b49
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user