@binary-bit-solutions/neptune-mediaupload
v0.3.3
Published
media (files) upload package for neptune-cms
Downloads
11
Maintainers
Readme
File Uploder
this package is specially developed for Neptune cms. but you can use with any laravel and react js project .
Installation
npm i @binary-bit-solutions/neptune-mediaupload
or
yarn add @binary-bit-solutions/neptune-mediaupload
How to use
import MediaUpload from '@binary-bit-solutions/neptune-mediaupload'
<MediaUpload show={show} onHide={handleClose.bind(this)}/>
API
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| domain | string | null
| if your application is not in public_html directory. if your app location is public_html/test then domain="test" |
| show | bool | false
| for open/close modal |
| onHide | func | | A Callback fired when the close button is clicked. If used directly inside a Modal component, the onHide will automatically be propagated up to the parent Modal onHide. |
| setMedia | func | | A Callback is fired when the file want to use |