choi

make picvid folder and readme update

......@@ -88,7 +88,7 @@ create table picvideo(
>건의사항: suggestion_board
---
### 최종 수정: 2021-12-03 05:28<br>
### 최종 수정: 2021-12-04 03:57<br>
### 수정 내용:
1. 채팅 구현(팝업)
2. 시간 실시간 반영
......@@ -104,3 +104,4 @@ create table picvideo(
12. 게시판 [공지사항/작곡가 구인/가수 구인/자유게시판/건의사항]으로 분화
13. 공지사항 게시판에는 운영자만 글쓰기 가능하게 함.
14. 게시판별 게시글 사진 및 동영상 열람기능 추가. 하지만 아직 업로드기능 개발중
15. 게시판별 사진 및 동영상 업로드기능 완료. 게시글 전용 사진/동영상 저장 폴더인 assets/picvid 추가
\ No newline at end of file
......
......@@ -13,7 +13,7 @@ require('@silvermine/videojs-quality-selector')(videojs);
var multer = require('multer');
var storagepic = multer.diskStorage({ // 2
destination(req, file, cb) {
cb(null, 'assets/img/');
cb(null, 'assets/picvid/');
},
filename(req, file, cb) {
cb(null, `${Date.now()}__${file.originalname}`);
......@@ -206,8 +206,8 @@ router.get('/read/notice/:idx', function(req,res,next){
var picarr = []
var vidarr = []
for(var i=0; i<picvideos.length; i++){
var picadd = "../../../assets/img/" + picvideos[i].picname;
var vidadd = "../../../assets/img/" + picvideos[i].vidname;
var picadd = "../../../assets/picvid/" + picvideos[i].picname;
var vidadd = "../../../assets/picvid/" + picvideos[i].vidname;
if(picvideos[i].picname != null){
picarr.push(picadd)
}
......@@ -499,8 +499,8 @@ router.get('/read/composer/:idx', function(req,res,next){
var picarr = []
var vidarr = []
for(var i=0; i<picvideos.length; i++){
var picadd = "../../../assets/img/" + picvideos[i].picname;
var vidadd = "../../../assets/img/" + picvideos[i].vidname;
var picadd = "../../../assets/picvid/" + picvideos[i].picname;
var vidadd = "../../../assets/picvid/" + picvideos[i].vidname;
if(picvideos[i].picname != null){
picarr.push(picadd)
}
......@@ -792,8 +792,8 @@ router.get('/read/singer/:idx', function(req,res,next){
var picarr = []
var vidarr = []
for(var i=0; i<picvideos.length; i++){
var picadd = "../../../assets/img/" + picvideos[i].picname;
var vidadd = "../../../assets/img/" + picvideos[i].vidname;
var picadd = "../../../assets/picvid/" + picvideos[i].picname;
var vidadd = "../../../assets/picvid/" + picvideos[i].vidname;
if(picvideos[i].picname != null){
picarr.push(picadd)
}
......@@ -1085,8 +1085,8 @@ router.get('/read/free/:idx', function(req,res,next){
var picarr = []
var vidarr = []
for(var i=0; i<picvideos.length; i++){
var picadd = "../../../assets/img/" + picvideos[i].picname;
var vidadd = "../../../assets/img/" + picvideos[i].vidname;
var picadd = "../../../assets/picvid/" + picvideos[i].picname;
var vidadd = "../../../assets/picvid/" + picvideos[i].vidname;
if(picvideos[i].picname != null){
picarr.push(picadd)
}
......@@ -1378,8 +1378,8 @@ router.get('/read/suggestion/:idx', function(req,res,next){
var picarr = []
var vidarr = []
for(var i=0; i<picvideos.length; i++){
var picadd = "../../../assets/img/" + picvideos[i].picname;
var vidadd = "../../../assets/img/" + picvideos[i].vidname;
var picadd = "../../../assets/picvid/" + picvideos[i].picname;
var vidadd = "../../../assets/picvid/" + picvideos[i].vidname;
if(picvideos[i].picname != null){
picarr.push(picadd)
}
......