Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 596eb94

Browse files
fix: permission issue for default drogon uploads folder (#1870)
Co-authored-by: vansangpfiev <[email protected]>
1 parent 8d6b772 commit 596eb94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/main.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ void RunServer(std::optional<std::string> host, std::optional<int> port,
201201
drogon::app().registerController(hw_ctl);
202202
drogon::app().registerController(config_ctl);
203203

204+
auto upload_path = std::filesystem::temp_directory_path() / "cortex-uploads";
205+
drogon::app().setUploadPath(upload_path.string());
206+
204207
LOG_INFO << "Server started, listening at: " << config.apiServerHost << ":"
205208
<< config.apiServerPort;
206209
LOG_INFO << "Please load your model";

0 commit comments

Comments
 (0)