elefant/app-filepicker

Filepicker app for the Elefant CMS

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:elefant-app

1.0 2012-09-25 17:27 UTC

This package is auto-updated.

Last update: 2022-07-25 01:48:35 UTC


README

This is a simple Filepicker.io app for the Elefant CMS.

Usage:

1. Install the app into your apps folder:

git clone git@github.com: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:

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