[React] 이미지 파일 업로드 express 서버 송신
React Code const BASE_URL = "http://localhost:3001"; const Mypage = () => { const [content, setContent] = useState(""); const [uploadedImg, setUploadedImg] = useState({ fileName: "", fillPath: "" }); const fileAdd = () => { let file = document.getElementById('fileAdd'); file.click(); } const onChange = (e) => { setContent(e.target.files[0]); }; const onSubmit = (e) => { e.preventDefault(); const..
2021.08.02