Every repository with this icon (
Every repository with this icon (
Home
Contents
Transfer Behavior takes care of transferring local and remote (via HTTP) files or handling uploads received through a HTML form. Media Behavior allows coupling of files with database records, generation of versions and transparently retrieves metadata. Medium Helper enabling you to include files easily in your markup.
Yet undocumented but also included:
For downloading and installing the plugin follow the instructions in the README then have a look at Configuration on how to configure the plugin.
If you are searching for Attachment-like functionality (store references to uploaded files in a table and link those records with other model’s records) then have a look at the Attachment Model page.
Versions & Requirements
| Plugin | CakePHP | min. PHP | Releases |
| 0.5x | 1.2.x | 5.1.0 | 0.50 |
| 0.6x | 1.2.x | 5.1.0 | 0.60alpha, 0.60beta |
| 1.3.x | 1.3.x | 5.1.0 | n/a |
The fileinfo extension is recommended.
The plugin has been heavily tested on machines running linux and darwin. It seems to suffer from issues on windows, though.
Getting Help
You can post questions regarding the usage of the plugin to the very active Official CakePHP Mailinglist. Please refrain from contacting David Persson for general questions directly. You can also always ask in #cakephp on freenode for help. If you’ve found a bug or like to suggest a feature create a ticket in the the issue tracker. If you think there is wrong information contained in the documentation edit the page directly or also open a ticket in the issue tracker.
Slides from the The CakePHP Media Plugin talk given at CakeFest #3 in Berlin are now available.
Contributing
If you already have experience with the plugin you can help by adding/modifying information on the wiki. If you have some ideas for improving this plugin just fork the media repo, make your changes and when ready push the “pull request” button to notify me about the changes you made. I’ll review them and see if I can merge them back. See the GitHub Guide for more information about forking. Please style your code according to the CakePHP Coding Standards.







