Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Issue with deleting file - CakePHP 4 #279

Open
MuseSw opened this issue May 7, 2020 · 4 comments
Open

Issue with deleting file - CakePHP 4 #279

MuseSw opened this issue May 7, 2020 · 4 comments
Labels

Comments

@MuseSw
Copy link

MuseSw commented May 7, 2020

I would like to use Proffer in my CakePHP 4 project. However, when implementing the delete example from the documentation, I get an error. I already tried replacing the config() function with getConfig(), but I am stuck at the following error:

Call to a member function getClientFilename() on string

@davidyell
Copy link
Owner

Are you using the Cake 4 release?

https://github.com/davidyell/CakePHP-Proffer/releases/tag/2.0.0-alpha1

@MuseSw
Copy link
Author

MuseSw commented May 12, 2020

Thank you for your response. Yes, I am using the most recent version of the Cake 4 release. Uploading works fine, but I am not able to delete an image/file using the code from the example.

Edit: double checked and it turn out I am even using the dev Cake 4 branch, which is even two weeks newer.

@hkosmidi
Copy link

has this been released to composer ? I use "davidyell/proffer": "2.0.0-alpha1" and doesn't seem to have been fixed

@davidyell
Copy link
Owner

Not yet, sorry. You'll need to target the branch specifically with the dev-cake-4 tag

https://semver.madewithlove.com/?package=davidyell%2Fproffer&constraint=dev-cake-4&stability=dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants