-
Notifications
You must be signed in to change notification settings - Fork 255
Fatal Error with Polymorphic Attachment Model #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please post a zip with an example app exhibiting this error.
|
The files are attached. I thought I'd never get the app pared down enough to pass through GitHub's file size limitations! Larry E. Lutz Date: Mon, 4 Feb 2013 15:55:32 -0800 Please post a zip with an example app exhibiting this error. On Feb 4, 2013 6:54 PM, "LarryTX" [email protected] wrote:
|
A really common problem is that the |
I'm getting an internal error when trying to implement the Upload plugin with the Polymorphic Attachment model. The record gets created in the table (without entries for dir, type, and size), but the file never gets uploaded. I've set the permissions on the files directory to allow full control by Everyone (Windows maching). Specifically, the internal error stack trace is:
Error: An Internal Error Has Occurred.
Stack Trace
I can't figure out what's going on. The table looks like this:
The model $actsAs looks like this:
I've tried it both with defining the fields (dir, type, and size) and without. The add.ctp form is set to 'type' => 'file'. The file field looks like:
What is especially quizzical to me is that the plugin is working just fine with another model. However, in that case, a polymorphic attachment table is not being used. In this case, unfortunately, I need to associate multiple attachments of varying numbers with each record.
Can anyone tell me what I'm doing wrong?
The text was updated successfully, but these errors were encountered: