Web Component - Upload Files Button for Web3 Applications
Simple HTML UI Upload Files Button Component that allows your to provide 100% decentralized storage solution with Filcoin (fil) using Web3Storage SKD or Storj using AWS S3 SDK. It includes an optionnal UI parametter to display spiinner and result storage URL. This HTML component is a great way to provide a upload files button to your application or website without centralized storage provider.
- Run
npm install @ngx-web3/ui-upload-btn
- Import the component in your application or website:
import '@ngx-web3/ui-upload-btn';
With Storj provider: .
<ngxweb3-upload-btn
accesskey="<YOUR_STORJ_ACCESS_KEY_ID>"
secretkey="<YOUR_STORJ_SECRET_ACCESS_KEY>"
endpoint="<YOUR_STORJ_SHARE_ENDPOINT>"
bucket="<YOUR_STORJ_BUCKET_NAME>"
provider="storj">
upload files
</ngxweb3-upload-btn>
With Filcoin provider: .
<ngxweb3-upload-btn
token="<YOUR_WEB3STORAGE_TOKEN>"
provider="filcoin">
upload files
</ngxweb3-upload-btn>