--- client/views/pages/main/PhotoEdit.vue
+++ client/views/pages/main/PhotoEdit.vue
... | ... | @@ -82,7 +82,7 @@ |
82 | 82 |
formData.append("files", file); |
83 | 83 |
|
84 | 84 |
try { |
85 |
- const response = await axios.post("/file/upload.json", formData, { |
|
85 |
+ const response = await axios.post("http://localhost:9080/file/upload.json", formData, { |
|
86 | 86 |
headers: { |
87 | 87 |
"Content-Type": "multipart/form-data", |
88 | 88 |
}, |
--- client/views/pages/teacher/QuestionDetail.vue
+++ client/views/pages/teacher/QuestionDetail.vue
... | ... | @@ -547,7 +547,7 @@ |
547 | 547 |
} |
548 | 548 |
|
549 | 549 |
try { |
550 |
- const response = await axios.post("/file/upload.json", formData, { |
|
550 |
+ const response = await axios.post("http://localhost:9080/file/upload.json", formData, { |
|
551 | 551 |
headers: { |
552 | 552 |
"Content-Type": "multipart/form-data", |
553 | 553 |
}, |
--- client/views/pages/teacher/QuestionInsert.vue
+++ client/views/pages/teacher/QuestionInsert.vue
... | ... | @@ -385,7 +385,7 @@ |
385 | 385 |
} |
386 | 386 |
|
387 | 387 |
try { |
388 |
- const response = await axios.post("/file/upload.json", formData, { |
|
388 |
+ const response = await axios.post("http://localhost:9080/file/upload.json", formData, { |
|
389 | 389 |
headers: { |
390 | 390 |
"Content-Type": "multipart/form-data", |
391 | 391 |
}, |
--- client/views/pages/teacher/RoadMap.vue
+++ client/views/pages/teacher/RoadMap.vue
... | ... | @@ -1118,9 +1118,15 @@ |
1118 | 1118 |
}, |
1119 | 1119 |
|
1120 | 1120 |
// prblmbook 만들어 id 가져오기 |
1121 |
+ postPrblmBook() { |
|
1121 | 1122 |
|
1123 |
+ }, |
|
1122 | 1124 |
// wordcontent 만들어 id 가져오기 |
1125 |
+ postWordContent() { |
|
1123 | 1126 |
|
1127 |
+ }, |
|
1128 |
+ |
|
1129 |
+ // 로드맵 정보 가져오기 |
|
1124 | 1130 |
}, |
1125 | 1131 |
watch: { |
1126 | 1132 |
|
--- client/views/pages/teacher/TextDetail.vue
+++ client/views/pages/teacher/TextDetail.vue
... | ... | @@ -197,7 +197,7 @@ |
197 | 197 |
} |
198 | 198 |
|
199 | 199 |
const fileUploadResponse = await axios.post( |
200 |
- "/file/upload.json", |
|
200 |
+ "http://localhost:9080/file/upload.json", |
|
201 | 201 |
formData, |
202 | 202 |
{ |
203 | 203 |
headers: { |
--- client/views/pages/teacher/TextInsert.vue
+++ client/views/pages/teacher/TextInsert.vue
... | ... | @@ -138,11 +138,11 @@ |
138 | 138 |
} |
139 | 139 |
|
140 | 140 |
const fileUploadResponse = await axios.post( |
141 |
- "/file/upload.json", |
|
141 |
+ "http://localhost:9080/file/upload.json", |
|
142 | 142 |
formData, |
143 | 143 |
{ |
144 | 144 |
headers: { |
145 |
- "Content-Type": "multipart/form-data", |
|
145 |
+ //"Content-Type": "multipart/form-data", |
|
146 | 146 |
}, |
147 | 147 |
} |
148 | 148 |
); |
--- client/views/pages/teacher/VocaDetail.vue
+++ client/views/pages/teacher/VocaDetail.vue
... | ... | @@ -349,7 +349,7 @@ |
349 | 349 |
} |
350 | 350 |
|
351 | 351 |
try { |
352 |
- const response = await axios.post("/file/upload.json", formData, { |
|
352 |
+ const response = await axios.post("http://localhost:9080/file/upload.json", formData, { |
|
353 | 353 |
headers: { |
354 | 354 |
"Content-Type": "multipart/form-data", |
355 | 355 |
}, |
--- client/views/pages/teacher/VocaInsert.vue
+++ client/views/pages/teacher/VocaInsert.vue
... | ... | @@ -275,7 +275,7 @@ |
275 | 275 |
} |
276 | 276 |
|
277 | 277 |
try { |
278 |
- const response = await axios.post("/file/upload.json", formData, { |
|
278 |
+ const response = await axios.post("http://localhost:9080/file/upload.json", formData, { |
|
279 | 279 |
headers: { |
280 | 280 |
"Content-Type": "multipart/form-data", |
281 | 281 |
}, |
--- client/views/pages/teacher/noticeInsert.vue
+++ client/views/pages/teacher/noticeInsert.vue
... | ... | @@ -128,7 +128,7 @@ |
128 | 128 |
} |
129 | 129 |
|
130 | 130 |
const fileUploadResponse = await axios.post( |
131 |
- "/file/upload.json", |
|
131 |
+ "http://localhost:9080/file/upload.json", |
|
132 | 132 |
formData, |
133 | 133 |
{ |
134 | 134 |
headers: { |
... | ... | @@ -173,7 +173,7 @@ |
173 | 173 |
} |
174 | 174 |
|
175 | 175 |
const fileUploadResponse = await axios.post( |
176 |
- "/file/upload.json", |
|
176 |
+ "http://localhost:9080/file/upload.json", |
|
177 | 177 |
formData, |
178 | 178 |
{ |
179 | 179 |
headers: { |
--- server/modules/web/Server.js
+++ server/modules/web/Server.js
... | ... | @@ -17,6 +17,11 @@ |
17 | 17 |
//Streaming 중인 자원에 새로운 데이터를 stream 공간에 추가하기 위한 라이브러리 |
18 | 18 |
const newLineStream = require('new-line'); |
19 | 19 |
|
20 |
+// 파일 사이즈 조정 |
|
21 |
+const bodyParser = require('body-parser'); |
|
22 |
+webServer.use(bodyParser.json({ limit: '50mb' })); |
|
23 |
+webServer.use(bodyParser.urlencoded({ limit: '50mb', extended: true })); |
|
24 |
+ |
|
20 | 25 |
/** |
21 | 26 |
* @author : 하석형 |
22 | 27 |
* @since : 2023.08.24 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?