diff --git a/autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts b/autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts index 56d76aa27f..442bd77e0f 100644 --- a/autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts +++ b/autogpt_platform/frontend/src/app/api/proxy/[...path]/route.ts @@ -22,7 +22,7 @@ function buildBackendUrl(path: string[], queryString: string): string { function isWorkspaceDownloadRequest(path: string[]): boolean { // Match pattern: api/workspace/files/{id}/download (5 segments) return ( - path.length >= 5 && + path.length == 5 && path[0] === "api" && path[1] === "workspace" && path[2] === "files" &&