Download the PHP package fusic/filebinder without Composer
On this page you can find all versions of the php package fusic/filebinder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fusic/filebinder
More information about fusic/filebinder
Files in fusic/filebinder
Package filebinder
Short Description Simple file attachment plugin for CakePHP
License MIT
Homepage https://github.com/fusic/filebinder
Informations about the package filebinder
Filebinder: Simple file attachment plugin for CakePHP
Feature
- Simple settings
- Compatible with Transition Component
- Multi attachement
- Selectalble file store method (DB storage or not)
Requirements
- PHP >= 5.2.6
- CakePHP >= 2.0
Installation
Put 'Filebinder' directory on app/plugins in your CakePHP application. Then, add the following code in bootstrap.php
</h2>
</div>
add_confirm.ctp
<div class="posts form">
<h2></h2>
</div>
Amazon S3 combination
Requirements
- aws-sdk 1.5.*
Setting
<?php
Configure::write('Filebinder.S3.key', '************************');
Configure::write('Filebinder.S3.secret', '********************************************');
Configure::write('Filebinder.S3.region', 'ap-northeast-1');
<?php
class Post extends AppModel {
public $name = 'Post';
public $actsAs = array('Filebinder.Bindable' => array('storage' => array('Db', 'S3'))); // using Database and Amazon S3 for object storage
public $displayField = 'title';
public $bindFields = array(array(
'field' => 'image',
'tmpPath' => '/var/www/html/myapp/app/webroot/files/cache/',
'filePath' => '/var/www/html/myapp/app/webroot/files/',
'bucket' => 'aws.foobacket', // bucket name,
// 'acl' => AmazonS3::ACL_PUBLIC, // S3 ACL
));
}
License
The MIT License
Copyright (c) 2010-2011 Fusic Co., Ltd. (http://fusic.co.jp)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.