fix(tkuser): uploads/consumables 디렉토리 권한 — Dockerfile에서 미리 생성
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,7 @@ const upload = multer({
|
||||
|
||||
// 소모품 사진 업로드
|
||||
const consumablesDir = path.join(__dirname, '..', 'uploads', 'consumables');
|
||||
if (!fs.existsSync(consumablesDir)) { fs.mkdirSync(consumablesDir, { recursive: true }); }
|
||||
try { if (!fs.existsSync(consumablesDir)) { fs.mkdirSync(consumablesDir, { recursive: true }); } } catch (e) { console.warn('consumables 디렉토리 생성 실패 (Dockerfile에서 미리 생성 필요):', e.message); }
|
||||
|
||||
const consumableStorage = multer.diskStorage({
|
||||
destination: (req, file, cb) => {
|
||||
|
||||
Reference in New Issue
Block a user