Posts
Q&A
์ ๋ก๋์ POST http://localhost:3065/ 404 (Not Found) ์๋ฌ์ง๋ฌธ์ ๋๋ค.
์ ๋ง ์ฃ์กํ๋ฐ ๋ง์ง๋ง์ผ๋ก ์ง๋ฌธ ํ๋๋ง ๋๋ฆฌ๊ฒ ์ต๋๋ค.์ด๋ฏธ์ง๋ฅผ ์ ๋ก๋ํ ๋ค ์ถ๊ฐ๋ก ์ ๋ก๋ํ๋ฉด ๋ค์๊ณผ ๊ฐ์ด ์ด์ ์ ๋ก๋๋ฅผ ํฌํจํด์ ์คํ๋ฉ๋๋ค.(์ฌ์ง)(์ฌ์ง)(์ฌ์ง)(์ฌ์ง)onBeforeUpload๋ฅผ ์ฌ์ฉํด์ ์ ๋ก๋ ์ ์ ์กฐ๊ฑด์ ์ค์ ์ฒซ ์ ๋ก๋๋ฅผ ์ ์ธํ๊ณ ์คํํ ์ ์์๊ฒ๊ฐ์๋ฐ ํน์ ์ด๋ถ๋ถ์ ๋ํด์ ๋ต๋ณ ๋ฐ์ ์ ์์๊น์?ํผ์ ํด๊ฒฐํด๋ณด๋ ค๊ณ ๊ณ์ ์ฐพ์๋ดค๋๋ฐ ๋ต์ ์ฐพ๊ธฐ ํ๋ค์ด์ ์ง๋ฌธ๋๋ฆฝ๋๋ค.postingform const onChangeImages = useCallback((e) => { const imageFormData = new FormData(); e.fileList.forEach((f) => { imageFormData.append('image', f.originFileObj); }); dispatch({ type: UPLOAD_IMAGES_REQUEST, data: imageFormData, }) }, []); const onBeforeUpload = useCallback((file, fileList) => { // Access file content here and do something with it // console.log(file) // Prevent upload return false }, []);req.files ์ถ๋ ฅ๊ฒฐ๊ณผrouter.post('/images', isLoggedIn, upload.array('image'), async (req, res, next) => { try { console.log('๋ผ์ฐํฐ', req.files); res.json(req.files.map((v) => v.filename)); } catch (error) { console.error(error); next(error); } });(์ฌ์ง)(์ฌ์ง)
- 0
- 2
- 1.7K
Q&A
ํด์ํ๊ทธ ์ ๊ทํํ์๊ด๋ จํด์ ์ง๋ฌธ๋๋ฆฌ๊ฒ ์ต๋๋ค
๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค!! ์ถ๊ฐ๋ก ๊ถ๊ธํ์ ์ด์๋๋ฐ ํด๋น ๊ฐ์์์ ์ปดํฌ๋ํธ ํจ์์์ ์๊ดํธ๋ก ์์ฑํ์ จ๋๋ฐ ํน์ ์ปดํฌ๋ํธ ํจ์์ ์ค๊ดํธ{}, ์๊ดํธ()์ ์ฐจ์ด์ ์ ๋ฌด์์ธ๊ฐ์?
- 0
- 2
- 450
Q&A
Unhandled Runtime Error์ง๋ฌธ์ ๋๋ค
AppLayout.jsํ์ผ์์ ์คํธ๋์์ธ ์ปดํฌ๋ํธ๋ฅผ ์ฌ์ฉํ๊ณ ์คํํ์๋๋งํด๋ ์๋ฌ๊ฐ ๋ฐ์ํ์ง ์์๋๋ฐ ์ด ํ _app.jsํ์ผ ์์ฑํ๊ณ ์คํธ๋์์ธ cssํ์ผ importํ๋ฉด์๋ถํฐ ์๋ฌ๊ฐ ๋ฐ์ํ์ต๋๋ค. (์ฌ์ง)
- 0
- 2
- 511