Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- CA불러오기
- ts-loader
- HTMLFormElement
- next.js
- 자료구조
- incentive
- S3
- 다중서명계약
- wallet
- webpack
- Blockchain
- JavaScript
- TypeScript
- set-cookie
- 스마트컨트랙트
- next-connect
- 자바스크립트
- scss
- keccak256
- Goerlifaucet
- methoidID
- Codestates
- 해쉬테이블
- Sass
- 블록체인
- 코딩테스트
- @debug
- currentTarget
- geth
- goerli
Archives
- Today
- Total
목록FormData (1)
Minwook’s portfolio
로컬서버 file upload구현
사용스택 next.JS, typeScript, sass, axios, formidable 추가. multer, next-connect 1. 프론트에서 file input으로 data 받기 이미지 구현방식은 useRef로 DOM에 접근해서 이미지파일을 가져오고 onChange를 걸어서 이미지 미리보기가 자동으로 바뀌게 구현할 것 이다. 1) useRef로 DOM에 접근하여 file 데이터 받아오기 const imgRef = useRef(null); const imgReset = () => { if (imgRef.current) { imgRef.current.value = ""; } }; return ( ... file 삭제하기 ... ) 삭제하기를 누를시에 e.current.value를 삭제시켜서 파일 이..
Today I Learned
2023. 3. 10. 00:14