Friday, October 3, 2014

Re: saveAssociated (deep) with file upload on deep model - looking for help (everything good except upload)

Just figured out the problem... The rules in my model, created by `cake bake`, although exactly what I would have wanted if I was manually uploading information and handling the data, don't work with the Upload plugin. It causes an error, which in turn doesn't let me upload the file. Had I uncommented or set a custom error message to be returned in the session, I probably would have figured it out sooner.

I uncommented all of my TicketAttachment model validation rules just to see if it would work (it did). I'm going to go back and try adding some back in that don't directly relate to the upload process/data. But I won't be reporting back on that. For anyone else that may come across this topic - you can work a little bit on your own to figure things out too since this took me about 3.5 weeks all in total, just for getting files to upload through saveAssociated. :D ...upgrading my legacy app from 2.1 to 2.5 is not yet complete, so that's another amount of time I'll get to "play". :D

Anyway, thanks to any one who looked at this in order to see if I needed help (and they thought they might be able to offer some). Thanks!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: