Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install react file base64

npm install react-file-base64
Comment

react-file-base64

import FileBase64 from "react-file-base64";
// FileBase64 <- use as component

<FileBase64 
	type="file"
    multiple={false} <- if want to upload multiple images set "true"
    onDone={} <- takes callback function
/>

// onDone return an object of: filename, fileType, base64 data
// use the setState or function of useState to grap the base64 data
Comment

PREVIOUS NEXT
Code Example
Shell :: linux folder size 
Shell :: center dock icons ubuntu 
Shell :: ZTC ZEM800 telnet password 
Shell :: link php with php 8 mac 
Shell :: bash return every nth line 
Shell :: remove folder from terminal 
Shell :: headlessui npm 
Shell :: certbot dry run renew 
Shell :: insta hack 
Shell :: how to kill port in windows 
Shell :: installing rspec gemfile 
Shell :: git replace with origin branch 
Shell :: Expose local postgres database over https 
Shell :: docker interact with running container 
Shell :: install python3 and python pip in docker 
Shell :: extract tgz from ubuntu terminal 
Shell :: how to do create diff file in linux 
Shell :: wasm-pack install 
Shell :: monitor mode wifi kali 
Shell :: sqlmap get injection 
Shell :: how to install pgadmin4 ubuntu 
Shell :: remove from staging git 
Shell :: git changes on branch carried over after switching to other branch 
Shell :: wsl System has not been booted with systemd as init system 
Shell :: remove all iptables rules 
Shell :: Unit nginx.service is masked 
Shell :: docker autostart container ubuntu on startup 
Shell :: linux document root 
Shell :: workbench linux 
Shell :: mysql query result to file 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =