Skip to content

Commit

Permalink
fix logic error in multipart/form-data multiple file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Feb 26, 2024
1 parent ebfc802 commit 90710ea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions OdbDesignServer/Controllers/FileUploadController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,8 @@ namespace Odb::App::Server
{
// log to debug and skip rest of the loop
CROW_LOG_DEBUG << " Value: " << part_value.body << '\n';
continue;
}
else
{
CROW_LOG_ERROR << "multipart/form-data POST failed! Part name was: [" << part_name << "], which is not supported. Part name should be [" << MULTIPART_FORMDATA_PART_NAME << "].";
continue;
}

// Extract the file name
Expand Down

0 comments on commit 90710ea

Please sign in to comment.