0.0.4 • Published 4 years ago
web3-uploader v0.0.4
web3-uploader
A React library to help developers add files upload feature to web3 world - IPFS/Filecoin easily.

How to use
yarn add web3-uploader
import Web3Uploader from 'web3-uploader'
<Web3Uploader
apiToken="WEB3.STORAGE-TOKEN"
onUploaded={handleUploaded}
onLoading={handleLoading}
/>apiTokenThe web3.storage token, follow up the steps of #Get an API token to get a web3.storage API token.onUploadedThe callback once all files uploaded to IPFS/FilecoinonLoadingThe loading statusacceptSet accepted file types. One of type: string, string[]maxFilesMaximum accepted number of files The default value is 0 which means there is no limitation to how many files are accepted.disabledEnable/disable the dropzone.canUploadWhether the web3 uploader can upload the files to IPFS/Filecoin.