From bac0228d21b7195065e9cddcc327ae33659c7bcc Mon Sep 17 00:00:00 2001 From: dujinkim Date: Sun, 1 Jun 2025 13:52:21 +0000 Subject: (대표님) 20250601까지 작업사항 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rfqs-tech/service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rfqs-tech') diff --git a/lib/rfqs-tech/service.ts b/lib/rfqs-tech/service.ts index cd4aeaf7..26012491 100644 --- a/lib/rfqs-tech/service.ts +++ b/lib/rfqs-tech/service.ts @@ -2210,7 +2210,7 @@ export async function uploadTbeResponseFile(formData: FormData) { const fileName = `${originalName.split(".")[0]}-${timestamp}.${fileExtension}` // 업로드 디렉토리 및 경로 정의 - const uploadDir = join(process.cwd(), "rfq", "tbe-responses") + const uploadDir = join(process.cwd(), "public", "rfq", "tbe-responses") // 디렉토리가 없으면 생성 try { @@ -2242,7 +2242,7 @@ export async function uploadTbeResponseFile(formData: FormData) { const technicalResponseId = technicalResponse[0].id; // 파일 정보를 데이터베이스에 저장 - const dbFilePath = `/rfq/tbe-responses/${fileName}` + const dbFilePath = `rfq/tbe-responses/${fileName}` // vendorResponseAttachments 테이블 스키마에 맞게 데이터 삽입 await db.insert(vendorResponseAttachments) -- cgit v1.2.3