여유상점_095 : 14) Updating MainRolling Image ( Simlilar, CRUD image thorough MULTER , but different process )

오범준·2020년 9월 23일
0

use 'admin_mainscreen' table

1) select * from admin_mainscreen where Type = ~ (ex. MainRoll1 )

a) ==
해당 row 검색해서
1) ImgLink 가져와서 > 거기거 name 추려서 > fs.unlink를 통한 delete
2) 그 다음 새로 들어갈 값 update

b) !=
그냥 insert 바로 mysql

다 끝나면, multer 따로 lib로 빼기

profile
Dream of being "물빵개" ( Go abroad for Dance and Programming)

0개의 댓글