jichoi / lms_front star
박민혁 박민혁 08-20
240820 박민혁 서버 이미지 업로드 수정
@3993dc676935ddad4ef6220c029769a0044dd896
client/views/pages/main/PhotoEdit.vue
--- client/views/pages/main/PhotoEdit.vue
+++ client/views/pages/main/PhotoEdit.vue
@@ -82,7 +82,7 @@
       formData.append("files", file);
 
       try {
-        const response = await axios.post("/file/upload.json", formData, {
+        const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
           headers: {
             "Content-Type": "multipart/form-data",
           },
client/views/pages/teacher/QuestionDetail.vue
--- client/views/pages/teacher/QuestionDetail.vue
+++ client/views/pages/teacher/QuestionDetail.vue
@@ -547,7 +547,7 @@
             }
 
             try {
-                const response = await axios.post("/file/upload.json", formData, {
+                const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
                     headers: {
                         "Content-Type": "multipart/form-data",
                     },
client/views/pages/teacher/QuestionInsert.vue
--- client/views/pages/teacher/QuestionInsert.vue
+++ client/views/pages/teacher/QuestionInsert.vue
@@ -385,7 +385,7 @@
             }
 
             try {
-                const response = await axios.post("/file/upload.json", formData, {
+                const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
                     headers: {
                         "Content-Type": "multipart/form-data",
                     },
client/views/pages/teacher/RoadMap.vue
--- client/views/pages/teacher/RoadMap.vue
+++ client/views/pages/teacher/RoadMap.vue
@@ -1118,9 +1118,15 @@
         },
 
         // prblmbook 만들어 id 가져오기
+        postPrblmBook() {
 
+        },
         // wordcontent 만들어 id 가져오기
+        postWordContent() {
 
+        },
+
+        // 로드맵 정보 가져오기
     },
     watch: {
 
client/views/pages/teacher/TextDetail.vue
--- client/views/pages/teacher/TextDetail.vue
+++ client/views/pages/teacher/TextDetail.vue
@@ -197,7 +197,7 @@
                 }
 
                 const fileUploadResponse = await axios.post(
-                    "/file/upload.json",
+                    "http://localhost:9080/file/upload.json",
                     formData,
                     {
                         headers: {
client/views/pages/teacher/TextInsert.vue
--- client/views/pages/teacher/TextInsert.vue
+++ client/views/pages/teacher/TextInsert.vue
@@ -138,11 +138,11 @@
                 }
 
                 const fileUploadResponse = await axios.post(
-                    "/file/upload.json",
+                    "http://localhost:9080/file/upload.json",
                     formData,
                     {
                         headers: {
-                            "Content-Type": "multipart/form-data",
+                            //"Content-Type": "multipart/form-data",
                         },
                     }
                 );
client/views/pages/teacher/VocaDetail.vue
--- client/views/pages/teacher/VocaDetail.vue
+++ client/views/pages/teacher/VocaDetail.vue
@@ -349,7 +349,7 @@
             }
 
             try {
-                const response = await axios.post("/file/upload.json", formData, {
+                const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
                     headers: {
                         "Content-Type": "multipart/form-data",
                     },
client/views/pages/teacher/VocaInsert.vue
--- client/views/pages/teacher/VocaInsert.vue
+++ client/views/pages/teacher/VocaInsert.vue
@@ -275,7 +275,7 @@
             }
 
             try {
-                const response = await axios.post("/file/upload.json", formData, {
+                const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
                     headers: {
                         "Content-Type": "multipart/form-data",
                     },
client/views/pages/teacher/noticeInsert.vue
--- client/views/pages/teacher/noticeInsert.vue
+++ client/views/pages/teacher/noticeInsert.vue
@@ -128,7 +128,7 @@
           }
 
           const fileUploadResponse = await axios.post(
-            "/file/upload.json",
+            "http://localhost:9080/file/upload.json",
             formData,
             {
               headers: {
@@ -173,7 +173,7 @@
         }
 
         const fileUploadResponse = await axios.post(
-          "/file/upload.json",
+          "http://localhost:9080/file/upload.json",
           formData,
           {
             headers: {
server/modules/web/Server.js
--- server/modules/web/Server.js
+++ server/modules/web/Server.js
@@ -17,6 +17,11 @@
 //Streaming 중인 자원에 새로운 데이터를 stream 공간에 추가하기 위한 라이브러리
 const newLineStream = require('new-line');
 
+// 파일 사이즈 조정
+const bodyParser = require('body-parser');
+webServer.use(bodyParser.json({ limit: '50mb' }));
+webServer.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
+
 /**
  * @author : 하석형
  * @since : 2023.08.24
Add a comment
List