FriendsOfCake / cakephp-upload

CakePHP: Handle file uploading sans ridiculous automagic
https://cakephp-upload.readthedocs.io/
MIT License
551 stars 255 forks source link

Error #420

Closed clementcrownrise closed 7 years ago

clementcrownrise commented 7 years ago

I installed your cakephp upload plugin, but on clicking on the submit button, i get the below error.

image

I actually installed with composer, but I didnt see the plugin file and folder in the cakephp Plugin directory, so I had to manually download the plugin from github and place the folder in the cakephp plugin directory,

Please what could me the cause of this problem? and how do I fix it?

davidyell commented 7 years ago

If you are downloading plugins using Composer, then they'll end up in the /vendor folder, not in src/Plugin. I'd also assume that if you're using Composer, you're using Cake 3, which would be looking in /vendor and not in Plugin

ADmad commented 7 years ago

Use composer to install the plugin so that the plugin and it's dependencies are properly installed.

josegonzalez commented 7 years ago

@clementcrownrise As @davidyell says, the plugins will be installed inside of /vendor. CakePHP knows how to load them up, so you just need to add it to your bootstrap at that point.

The src/Plugin folder is for plugins you've developed for your particular application.

clementcrownrise commented 7 years ago

I used composer to do the installation, the plugin files were not in vendor file also, however, I will try again.

Thanks

josegonzalez commented 7 years ago

They won't be top-level, but in some nested directory.

clementcrownrise commented 7 years ago

image

Telling me nothing to install,

josegonzalez commented 7 years ago

It's already installed then. Here is what I get in an app that has it installed already:

$ ll vendor/josegonzalez/cakephp-upload/
total 72
drwxr-xr-x@ 14 jose  staff   476B Nov 30 22:40 .
drwxr-xr-x@  7 jose  staff   238B Nov 30 22:40 ..
-rw-r--r--@  1 jose  staff   320B Nov 21 09:02 .editorconfig
-rw-r--r--@  1 jose  staff    22B Nov 21 09:02 .gitignore
-rw-r--r--@  1 jose  staff   353B Nov 21 09:02 .scrutinizer.yml
-rw-r--r--@  1 jose  staff   1.8K Nov 21 09:02 .travis.yml
-rw-r--r--@  1 jose  staff   2.9K Nov 21 09:02 CONTRIBUTING.md
-rw-r--r--@  1 jose  staff   1.1K Nov 21 09:02 LICENSE.txt
-rw-r--r--@  1 jose  staff   2.7K Nov 21 09:02 README.md
-rw-r--r--@  1 jose  staff   1.1K Nov 21 09:02 composer.json
drwxr-xr-x@ 12 jose  staff   408B Nov 21 09:02 docs
-rw-r--r--@  1 jose  staff   1.2K Nov 21 09:02 phpunit.xml.dist
drwxr-xr-x@  6 jose  staff   204B Nov 21 09:02 src
drwxr-xr-x@  6 jose  staff   204B Nov 21 09:02 tests
clementcrownrise commented 7 years ago

Ok, thanks for your support

image hope I can add the upload to multiple field , like I did in the screenshot above ?

josegonzalez commented 7 years ago

Sure that probably works.

clementcrownrise commented 7 years ago

image

see my debug, the record is not added and no picture is uploaded

clementcrownrise commented 7 years ago

image

josegonzalez commented 7 years ago

@clementcrownrise please join the cakephp slack or irc room to get further support there.

clementcrownrise commented 7 years ago

Ok, thnks