https://github.com/jbroadway/filepicker
Filepicker.io helper app for the Elefant CMS.
https://github.com/jbroadway/filepicker
Last synced: about 2 months ago
JSON representation
Filepicker.io helper app for the Elefant CMS.
- Host: GitHub
- URL: https://github.com/jbroadway/filepicker
- Owner: jbroadway
- Created: 2012-09-24T20:15:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-27T18:36:23.000Z (over 12 years ago)
- Last Synced: 2025-01-13T12:26:59.150Z (3 months ago)
- Language: PHP
- Size: 97.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a simple [Filepicker.io](https://www.filepicker.io/) app
for the [Elefant CMS](http://www.elefantcms.com/).Usage:
1\. Install the app into your apps folder:
```
git clone [email protected]:jbroadway/filepicker.git apps/filepicker
```2\. Add your API key to `apps/filepicker/conf/config.php`.
3\. Create an upload field in your handlers or views:
```
{! filepicker/my_field_name?mimetypes=image/* !}
```To enable drag & drop, use:
```
{! filepicker/my_field_name?dragdrop=1 !}
```Or from any handler, use:
```php
echo $this->run ('filepicker/my_field_name', array (
'mimetypes' => 'image/*',
'option-services' => 'COMPUTER,DROPBOX,GOOGLE_DRIVE,URL',
'dragdrop' => true,
'onchange' => 'console.log(event)'
));
```> Note that you can skip the `data-fp-` prefix on option names.
See here for all available options:
https://developers.filepicker.io/docs/web/#widgets-open