Skip to content

Commit

Permalink
Fixed upload to workspace issue. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Jan 19, 2025
1 parent b55b420 commit 50e5060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Script/Dev/WebServer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ end, function(req, file) -- 506
end -- 514
end -- 514
if path ~= nil then -- 507
path = Path(Content.appPath, path) -- 508
path = Path(Content.writablePath, path) -- 508
if Content:exist(path) then -- 509
local uploadPath = Path(Content.appPath, ".upload") -- 510
local targetPath = Path(path, Path:getRelative(file, uploadPath)) -- 511
Expand Down
2 changes: 1 addition & 1 deletion Assets/Script/Dev/WebServer.yue
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ HttpServer\upload(
return targetPath
(req, file): false ->
switch req when {params: {:path}}
path = Path Content.appPath, path
path = Path Content.writablePath, path
if Content\exist path
uploadPath = Path Content.appPath, ".upload"
targetPath = Path path, Path\getRelative file, uploadPath
Expand Down

0 comments on commit 50e5060

Please sign in to comment.