mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
open file with binary mode
This commit is contained in:
parent
f68205f113
commit
b6dfd5842d
@ -435,7 +435,7 @@ void TC_Cgi::parseFormData(multimap<string, string> &mmpParams, const string &sB
|
||||
sTheFile = sName;
|
||||
|
||||
//打开文件
|
||||
if ( (fp = fopen(sUploadFileName.c_str(),"w")) == NULL)
|
||||
if ( (fp = fopen(sUploadFileName.c_str(),"wb")) == NULL)
|
||||
{
|
||||
mmpParams.clear(); //clear , exception safe
|
||||
THROW_EXCEPTION_SYSCODE(TC_Cgi_Exception, "[TC_Cgi::parseFormData] Upload File '" + sValue + "' to '" + sUploadFileName +"' error");
|
||||
|
Loading…
Reference in New Issue
Block a user