scherersoftware / cake-attachments Goto Github PK
View Code? Open in Web Editor NEWFile Attachments Plugin for CakePHP 3
License: MIT License
File Attachments Plugin for CakePHP 3
License: MIT License
Potential Fix
private function __getFileName(array $fileInfo, EntityInterface $entity, int $id = 0): array
{
$filepath = $entity->getSource() . DS . $entity->id . DS . $fileInfo['basename'];
if (
!file_exists(
Configure::read('Attachments.path') . $filepath
)
) {
return $fileInfo;
}
$fileInfo['basename'] = $fileInfo['filename'] . ' (' . (string)++$id . ').' . $fileInfo['extension'];
return $this->__getFileName($fileInfo, $entity, $id);
}
I dont have this file in my webroot/js/app, kindly direct me on how to include Attachments in BaseComponents Arrray in the said webroot/js/app/app_controller.js file.
I have configured everything as per the given documentation, the upload attachment area is showing but Add button is not uploading the selected file. Also can see any include js files in the the html source(through firebug) Kindly assist.
Thanks in Advance
@robertscherer
Hey man
Any reason you are not putting your probably very useful and good working plugin @
https://github.com/FriendsOfCake/awesome-cakephp#files ?
I would recommend doing that so more people are aware and can chose this if they find it useful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.