Re: [Cake 2.6.3] Cake's FileUpload Validation not working; what is wrong?

2015-04-13 Thread Willem
It worked thanks! On Monday, April 13, 2015 at 6:18:36 PM UTC+2, John Andersen wrote: > > The validation in your model points to a field named "image", but the view > you have points to a field named "submittedFile" :) > Which is the correct one? > Enjoy, John > > On Monday, 13 April 2015 11:17:1

Re: [Cake 2.6.3] Cake's FileUpload Validation not working; what is wrong?

2015-04-13 Thread Willem
Hi, thanks, will try this ASAP. I got it mixed up thiking it was an alias/name/labe as in multiple validations per field. :-S On Monday, April 13, 2015 at 6:18:36 PM UTC+2, John Andersen wrote: > > The validation in your model points to a field named "image", but the view > you have points

Re: [Cake 2.6.3] Cake's FileUpload Validation not working; what is wrong?

2015-04-13 Thread John Andersen
The validation in your model points to a field named "image", but the view you have points to a field named "submittedFile" :) Which is the correct one? Enjoy, John On Monday, 13 April 2015 11:17:13 UTC+3, Willem wrote: > > I have a model "Attachment" which Belongs to another model (hasMany > At

[Cake 2.6.3] Cake's FileUpload Validation not working; what is wrong?

2015-04-13 Thread Willem
I have a model "Attachment" which Belongs to another model (hasMany Attachment). In model Attachment I put a validator (from the Cake helpbook) to check against filetypes. After saveAssociated i would expect an error if uploaded a .txt file, but the model is save successfully? *Add.ctp* for