Welcome to the Simple File Upload React Uploader documentation. This documentation provides guidance on how to add the Simple File Upload React Uploader to your projects - let's get started!
There is a React component for Simple File Upload called `react-simple-file-upload`
. You can install it with npm or yarn: `npm install react-simple-file-upload`
Once installed, you can import and use the package. Once uploaded, the file will be available in the `onSuccess`
handler.
import { SimpleFileUpload } from 'react-simple-file-upload'
<SimpleFileUpload
apiKey="..."
onSuccess={handleFile}
/>
function handleFile(url){
console.log('The URL of the file is ' + url)
}
See a detailed explanation of how to use the React component with a working sample application here: How to use Simple File Upload with React.
You can also check out our live demo!