flag
This commit is contained in:
parent
ee562343c1
commit
4c151e610c
|
@ -84,7 +84,8 @@ int HttpFileImpl::saveTo(const filesystem::path &pathAndFileName) const
|
|||
{
|
||||
LOG_TRACE << "save uploaded file:" << pathAndFileName;
|
||||
auto wPath = utils::toNativePath(pathAndFileName.native());
|
||||
std::ofstream file(wPath, std::ios::binary);
|
||||
std::ofstream file(wPath,
|
||||
std::ios::binary | std::ios::out | std::ios::trunc);
|
||||
if (file.is_open())
|
||||
{
|
||||
file.write(fileContent_.data(), fileContent_.size());
|
||||
|
|
Loading…
Reference in New Issue