Showing
12 changed files
with
14 additions
and
13 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
... | @@ -88,7 +88,7 @@ create table picvideo( | ... | @@ -88,7 +88,7 @@ create table picvideo( |
88 | >건의사항: suggestion_board | 88 | >건의사항: suggestion_board |
89 | 89 | ||
90 | --- | 90 | --- |
91 | -### 최종 수정: 2021-12-03 05:28<br> | 91 | +### 최종 수정: 2021-12-04 03:57<br> |
92 | ### 수정 내용: | 92 | ### 수정 내용: |
93 | 1. 채팅 구현(팝업) | 93 | 1. 채팅 구현(팝업) |
94 | 2. 시간 실시간 반영 | 94 | 2. 시간 실시간 반영 |
... | @@ -103,4 +103,5 @@ create table picvideo( | ... | @@ -103,4 +103,5 @@ create table picvideo( |
103 | 11. 요소 좌우 길이 80%로 조절 | 103 | 11. 요소 좌우 길이 80%로 조절 |
104 | 12. 게시판 [공지사항/작곡가 구인/가수 구인/자유게시판/건의사항]으로 분화 | 104 | 12. 게시판 [공지사항/작곡가 구인/가수 구인/자유게시판/건의사항]으로 분화 |
105 | 13. 공지사항 게시판에는 운영자만 글쓰기 가능하게 함. | 105 | 13. 공지사항 게시판에는 운영자만 글쓰기 가능하게 함. |
106 | -14. 게시판별 게시글 사진 및 동영상 열람기능 추가. 하지만 아직 업로드기능 개발중 | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
106 | +14. 게시판별 게시글 사진 및 동영상 열람기능 추가. 하지만 아직 업로드기능 개발중 | ||
107 | +15. 게시판별 사진 및 동영상 업로드기능 완료. 게시글 전용 사진/동영상 저장 폴더인 assets/picvid 추가 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -13,7 +13,7 @@ require('@silvermine/videojs-quality-selector')(videojs); | ... | @@ -13,7 +13,7 @@ require('@silvermine/videojs-quality-selector')(videojs); |
13 | var multer = require('multer'); | 13 | var multer = require('multer'); |
14 | var storagepic = multer.diskStorage({ // 2 | 14 | var storagepic = multer.diskStorage({ // 2 |
15 | destination(req, file, cb) { | 15 | destination(req, file, cb) { |
16 | - cb(null, 'assets/img/'); | 16 | + cb(null, 'assets/picvid/'); |
17 | }, | 17 | }, |
18 | filename(req, file, cb) { | 18 | filename(req, file, cb) { |
19 | cb(null, `${Date.now()}__${file.originalname}`); | 19 | cb(null, `${Date.now()}__${file.originalname}`); |
... | @@ -206,8 +206,8 @@ router.get('/read/notice/:idx', function(req,res,next){ | ... | @@ -206,8 +206,8 @@ router.get('/read/notice/:idx', function(req,res,next){ |
206 | var picarr = [] | 206 | var picarr = [] |
207 | var vidarr = [] | 207 | var vidarr = [] |
208 | for(var i=0; i<picvideos.length; i++){ | 208 | for(var i=0; i<picvideos.length; i++){ |
209 | - var picadd = "../../../assets/img/" + picvideos[i].picname; | 209 | + var picadd = "../../../assets/picvid/" + picvideos[i].picname; |
210 | - var vidadd = "../../../assets/img/" + picvideos[i].vidname; | 210 | + var vidadd = "../../../assets/picvid/" + picvideos[i].vidname; |
211 | if(picvideos[i].picname != null){ | 211 | if(picvideos[i].picname != null){ |
212 | picarr.push(picadd) | 212 | picarr.push(picadd) |
213 | } | 213 | } |
... | @@ -499,8 +499,8 @@ router.get('/read/composer/:idx', function(req,res,next){ | ... | @@ -499,8 +499,8 @@ router.get('/read/composer/:idx', function(req,res,next){ |
499 | var picarr = [] | 499 | var picarr = [] |
500 | var vidarr = [] | 500 | var vidarr = [] |
501 | for(var i=0; i<picvideos.length; i++){ | 501 | for(var i=0; i<picvideos.length; i++){ |
502 | - var picadd = "../../../assets/img/" + picvideos[i].picname; | 502 | + var picadd = "../../../assets/picvid/" + picvideos[i].picname; |
503 | - var vidadd = "../../../assets/img/" + picvideos[i].vidname; | 503 | + var vidadd = "../../../assets/picvid/" + picvideos[i].vidname; |
504 | if(picvideos[i].picname != null){ | 504 | if(picvideos[i].picname != null){ |
505 | picarr.push(picadd) | 505 | picarr.push(picadd) |
506 | } | 506 | } |
... | @@ -792,8 +792,8 @@ router.get('/read/singer/:idx', function(req,res,next){ | ... | @@ -792,8 +792,8 @@ router.get('/read/singer/:idx', function(req,res,next){ |
792 | var picarr = [] | 792 | var picarr = [] |
793 | var vidarr = [] | 793 | var vidarr = [] |
794 | for(var i=0; i<picvideos.length; i++){ | 794 | for(var i=0; i<picvideos.length; i++){ |
795 | - var picadd = "../../../assets/img/" + picvideos[i].picname; | 795 | + var picadd = "../../../assets/picvid/" + picvideos[i].picname; |
796 | - var vidadd = "../../../assets/img/" + picvideos[i].vidname; | 796 | + var vidadd = "../../../assets/picvid/" + picvideos[i].vidname; |
797 | if(picvideos[i].picname != null){ | 797 | if(picvideos[i].picname != null){ |
798 | picarr.push(picadd) | 798 | picarr.push(picadd) |
799 | } | 799 | } |
... | @@ -1085,8 +1085,8 @@ router.get('/read/free/:idx', function(req,res,next){ | ... | @@ -1085,8 +1085,8 @@ router.get('/read/free/:idx', function(req,res,next){ |
1085 | var picarr = [] | 1085 | var picarr = [] |
1086 | var vidarr = [] | 1086 | var vidarr = [] |
1087 | for(var i=0; i<picvideos.length; i++){ | 1087 | for(var i=0; i<picvideos.length; i++){ |
1088 | - var picadd = "../../../assets/img/" + picvideos[i].picname; | 1088 | + var picadd = "../../../assets/picvid/" + picvideos[i].picname; |
1089 | - var vidadd = "../../../assets/img/" + picvideos[i].vidname; | 1089 | + var vidadd = "../../../assets/picvid/" + picvideos[i].vidname; |
1090 | if(picvideos[i].picname != null){ | 1090 | if(picvideos[i].picname != null){ |
1091 | picarr.push(picadd) | 1091 | picarr.push(picadd) |
1092 | } | 1092 | } |
... | @@ -1378,8 +1378,8 @@ router.get('/read/suggestion/:idx', function(req,res,next){ | ... | @@ -1378,8 +1378,8 @@ router.get('/read/suggestion/:idx', function(req,res,next){ |
1378 | var picarr = [] | 1378 | var picarr = [] |
1379 | var vidarr = [] | 1379 | var vidarr = [] |
1380 | for(var i=0; i<picvideos.length; i++){ | 1380 | for(var i=0; i<picvideos.length; i++){ |
1381 | - var picadd = "../../../assets/img/" + picvideos[i].picname; | 1381 | + var picadd = "../../../assets/picvid/" + picvideos[i].picname; |
1382 | - var vidadd = "../../../assets/img/" + picvideos[i].vidname; | 1382 | + var vidadd = "../../../assets/picvid/" + picvideos[i].vidname; |
1383 | if(picvideos[i].picname != null){ | 1383 | if(picvideos[i].picname != null){ |
1384 | picarr.push(picadd) | 1384 | picarr.push(picadd) |
1385 | } | 1385 | } | ... | ... |
-
Please register or login to post a comment