Yii 1.1: ddmedia

Module to manage files and folders assets in a web application
20 followers

DDMedia is a module for the Yii PHP framework that provides a web user interface to manage files and folders.

Supported tasks so far:

  • Browse folders
  • Create new directory
  • Upload a file
  • Rename, copy, move, delete files or folders
  • Preview for images
  • Download for files
  • Allow to select multiple items and do batch actions with them (e.g. move, delete)

Setup

Download or clone the latest release from the BitBucket git repository.

Extract the module under protected/modules/media and add the following to your application config:

return array(
    ...
    'media'=>array(
        // Base dir for media browser (app/files):
        'baseDir'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'files',
    ),
    ...
);

protected/config/main.php

Please note that the module doesn't require you to use a database.

Usage

Add a link somewhere in your main menu like CHtml::link('Media Browser', array('/ddmedia')).

Screenshot

Screenshot

To Do's

  • Show media meta data on clicking an item in a sidebar widget
  • Add config option to hide/show hidden files or folders

Donate

If you like this extension and would like to buy me a coffee, please consider to donate.

Donate with PayPal

Links

Total 4 comments

#17889 report it
Nur Rochim at 2014/08/06 09:59am
Include finfo.php

Problem:

include(finfo.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

Answer: Activate it in your php.ini

extension=php_fileinfo.dll
#16432 report it
keripik_jagung at 2014/02/22 10:23am
How do i resolve this error?

opendir(/./System Volume Information,/./System Volume Information): Access is denied. (code: 5)

#15625 report it
ochgar at 2013/11/30 04:48pm
Help

Thanks, it look useful.

but I have this problem.

Error 404

Unable to resolve the request "ddmedia".

I was trying using media instead ddmedia, but I have this other error.

/./Archivos de programa is not a valid file path

I don't know where is my problem, I followed the same steps.

I'm newbie to yii.

thanks,

#11584 report it
samilo at 2013/01/21 06:47pm
Nice

Thanks , it's perfect and so useful

Leave a comment

Please to leave your comment.

Create extension
Downloads