diff options
Diffstat (limited to 'app/api')
| -rw-r--r-- | app/api/files/[...path]/route.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/api/files/[...path]/route.ts b/app/api/files/[...path]/route.ts index 0416f800..58014a45 100644 --- a/app/api/files/[...path]/route.ts +++ b/app/api/files/[...path]/route.ts @@ -74,8 +74,12 @@ export async function GET( ); // 디코딩된 경로로 조합 - const requestedPath = decodedPath.join('/'); + let requestedPath = decodedPath.join('/'); + if (requestedPath.startsWith('api/files/')) { + requestedPath = requestedPath.substring('api/files/'.length); + } + console.log(`📂 파일 요청: ${requestedPath}`); // ✅ 다운로드 강제 여부 확인 |
