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 |
Tags
- 스크롤이벤트
- 상속
- 이진탐색
- Filter
- Next.js
- react
- 배열중복요소제거
- extends
- javascript
- set
- generic
- interface
- reactnative
- TS
- 안드로이드빌드에러
- app:compiledebugkotlin
- forwardref type
- map
- 타입스크립트
- err_connection_refused
- 슬라이딩윈도우
- npm에러
- Spring
- array
- app.post
- reactnative error
- mainapplication.kt
- 리액트네이티브아이콘
- materialicons
- async
Archives
- Today
- Total
목록img file (1)
rhanziy
React - image file 업로드 및 preview 구현
firebase로 sso기능 만들고 firestore에 사진+트윗 올리는 기능 만드는 중. image file 업로드와 preview 구현 코드. 사진 저장은 firestore에다 할 것이니 조금만 기다리세요. file 업로드 처리, 미리보기 코드 const [ attachment , setAttachment ] = useState(); const onFileChange = (e) => { const { files } = e.target; const theFile = files[0]; const reader = new FileReader(); reader.onloadend = (e) => { const { result } = e.currentTarget; setAttachment(result); } re..
React
2023. 2. 9. 17:49