react-uploader
Advanced tools
Comparing version 2.3.4 to 2.3.5
{ | ||
"name": "react-uploader", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"author": "Upload <hello@upload.io> (https://upload.io)", | ||
@@ -5,0 +5,0 @@ "description": "React File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐", |
@@ -6,14 +6,11 @@ <h1 align="center"> | ||
</h1> | ||
<p align="center"><b>React File Upload Widget</b><br/> (With Integrated Cloud Storage)</p> | ||
<p align="center">React Wrapper for <a href="https://upload.io/uploader">Uploader</a> • Developed by <a href="https://upload.io/">Upload.io</a><br/><br/></p> | ||
<br/> | ||
<p align="center"> | ||
<a href="https://github.com/upload-io/react-uploader/"> | ||
<img src="https://img.shields.io/badge/gzipped-29%20kb-4ba0f6" /> | ||
<img src="https://img.shields.io/badge/gzipped-6%20kb-4ba0f6" /> | ||
</a> | ||
<a href="https://www.npmjs.com/package/react-uploader"> | ||
<img src="https://img.shields.io/badge/react--uploader-npm-4ba0f6" /> | ||
<img src="https://img.shields.io/badge/upload--js-npm-4ba0f6" /> | ||
</a> | ||
@@ -43,6 +40,4 @@ | ||
</p> | ||
<h1 align="center"> | ||
Quick Start — | ||
Get Started — | ||
<a href="https://codepen.io/upload-js/pen/popWJpX?editors=0010"> | ||
@@ -55,28 +50,16 @@ Try on CodePen | ||
<p align="center">To implement the above widget:</p> | ||
<p align="center">100% Serverless File Upload Widget <br /> Powered by <a href="https://upload.io/">Upload.io</a><br/><br/></p> | ||
```shell | ||
npm install react-uploader | ||
``` | ||
<hr/> | ||
```javascript | ||
import { Uploader } from "uploader"; | ||
import { UploadButton } from "react-uploader"; | ||
<p align="center"><a href="https://upload.io/dmca" rel="nofollow">DMCA Compliant</a> • <a href="https://upload.io/dpa" rel="nofollow">GDPR Compliant</a> • <a href="https://upload.io/sla" rel="nofollow">99.9% Uptime SLA</a> | ||
<br/> | ||
<b>Supports:</b> Rate Limiting, Volume Limiting, File Size & Type Limiting, JWT Auth, and more... | ||
<br /> | ||
</p> | ||
const uploader = Uploader({ | ||
// Get production API keys from Upload.io | ||
apiKey: "free" | ||
}); | ||
<hr/> | ||
<br /> | ||
<br /> | ||
<UploadButton uploader={uploader} | ||
options={{multi: true}} | ||
onComplete={files => console.log(files)}> | ||
{({onClick}) => | ||
<button onClick={onClick}> | ||
Upload a file... | ||
</button> | ||
} | ||
</UploadButton> | ||
``` | ||
# Installation | ||
@@ -102,2 +85,4 @@ | ||
# Usage | ||
## UploadButton — [Try on CodePen](https://codepen.io/upload-js/pen/popWJpX?editors=0010) | ||
@@ -227,3 +212,3 @@ | ||
**Yes!** [Upload.io](https://upload.io) supports custom S3 buckets. You are still required to create an account. | ||
**Yes!** [Upload.io](https://upload.io) supports custom S3 buckets. You are still required to [create an Upload.io account](https://upload.io). | ||
@@ -230,0 +215,0 @@ ## Contribute |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114675
221