drag n drop file upload react
const onFileInputChange = (event) => {
const { files } = event.target;
// do something with your files...
}
drag n drop file upload react
const onFileInputChange = (event) => {
const { files } = event.target;
// do something with your files...
}
drag n drop file upload react
nvm use # Probably optional, but it can't hurt
cd file-drop
npm install
npm start
cd demo
npm install
npm start
drag n drop file upload react
<input
onChange={onFileInputChange}
ref={fileInputRef}
type="file"
className="hidden"
/>
drag n drop file upload react
const fileInputRef = useRef(null);
drag n drop file upload react
const onTargetClick = () => {
fileInputRef.current.click()
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us