Closed tbelknapsgs closed 2 years ago
What version of Cake and the plugin are you using?
Also, the upload is a behaviour so will need to be loaded onto the model, which I think in your case is the Images
model.
Sorry should have specified: CakePHP 4.4 Upload plugin 5.0.1
I figured out the issue, thank you.
This was working as recently as April and for months before that. I can 100% believe I've done something wrong, but going over the installation instructions, I see nothing wrong. The long and short of it is: when I upload a file, the upload never happens and I receive a database error message because the "thumb" field (my file input) is not provided. Therefore, the query looks like this:
However, the Image entity does not show any errors when the page reloads. I tried to catch the error this way, but it's not providing any additional information:
But the debug() information doesn't show any errors either. Here are the values debugged to the screen: