You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had trouble getting this working in MeioUpload 2.2 (CakePHP 1.2) also, but mainly due to a lack of documentation.
To disable a validation rule on my file upload field, I had to set the validation rule in the model that the field belonged to. I was trying to set the validation in the MeioUpload behavior settings, which is why it wasn't working.
For a file upload form field like this: echo $form->input('News.image', array('type' => 'file'));
I had to put this in my News model: var $validate = array('image' => array( 'Empty' => array('check' => false)));
doing it according to the docs i can find it does not work
is there another way or is it broken?
im doing this in the mean time
The text was updated successfully, but these errors were encountered: