Download the PHP package dbrisinajumi/d2files without Composer
On this page you can find all versions of the php package dbrisinajumi/d2files. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dbrisinajumi/d2files
More information about dbrisinajumi/d2files
Files in dbrisinajumi/d2files
Download dbrisinajumi/d2files
More information about dbrisinajumi/d2files
Files in dbrisinajumi/d2files
Please rate this library. Is it a good library?
Informations about the package d2files
d2files (cloned from d1files)
Features
- attach files to model record
- widget for model view
Installation
- install https://github.com/blueimp/jQuery-File-Upload?source=c
- add to config/main.php
-
to config/console.php under commandMap add
- execute yiic migration
- in table d2files can define file types for model.
Usage
VIEW
Requirements
- To upload file user must have "ModuleName.ModelName.uploadD2File" access rights for caller module
- To delete file user must have "ModuleName.ModelName.deleteD2File" access rights for caller module
- To download, upload or delete file user must have read access to corresponding item it is attached to and "ModuleName.ModelName.downloadD2File"
sql statement example for giving access
INSERT INTO `authitem`
(`name`, `type`, `description`, `bizrule`, `data`)
VALUES
('D2company.CcmpCompany.uploadD2File','0','D2company.CcmpCompany upolad D2Files',NULL,'N;'),
('D2company.CcmpCompany.downloadD2File','0','D2company.CcmpCompany downloas D2Files',NULL,'N;'),
('D2company.CcmpCompany.deleteD2File','0','D2company.CcmpCompany delete D2Files',NULL,'N;')
;
INSERT INTO `authitemchild` (`parent`, `child`) VALUES ('Agent', 'D2company.CcmpCompany.uploadD2File');
INSERT INTO `authitemchild` (`parent`, `child`) VALUES ('Agent', 'D2company.CcmpCompany.downloadD2File');
INSERT INTO `authitemchild` (`parent`, `child`) VALUES ('Agent', 'D2company.CcmpCompany.deleteD2File');
All versions of d2files with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
blueimp/jquery-file-upload Version 9.5.*
dbrisinajumi/audittrail Version 2.1.3
blueimp/jquery-file-upload Version 9.5.*
dbrisinajumi/audittrail Version 2.1.3
The package dbrisinajumi/d2files contains the following files
Loading the files please wait ....