redux-file-upload
redux-file-upload copied to clipboard
Cannot read property 'filterFiles' of null
i have followed the instruction but it is not working
npm install --save redux-file-upload
import { FileUpload } from 'redux-file-upload'
<FileUpload
allowedFileTypes={['jpg', 'pdf']}
data={{ type: 'picture' }}
dropzoneId="fileUpload"
url="/api/admin/upload/content/management/upload/format/json"
>
<button>
Click or drag here
</button>
</FileUpload>
when i add a file i get error Uncaught (in promise) TypeError: Cannot read property 'filterFiles' of null....