I can't seem to get this behaviour to work... I am stumbling at the first hurdle it would seem!
In my view, I have a multipart/form-data form with a $form->file( 'Model.filename' ) field in it.
I have left the default settings in the behaviour.
When I post the form, it just returns "error in mime type".
I have done some troubleshooting and it appears that this is occurring because the script can't find the mimetype in the array or the allowedMime array is empty.
When I checked the output of the in_array($model->data[$model->name][$field]['type'], $allowedMime) block, it returned "imagegif" without the / in between. Is this normal? It obviously won't find that needle in the haystack as it should exist as "image/gif" or am I wrong?
The searchAddress method is a private method of the plugin and is not available for use outside, as the settings have to be passed in from the constructor.
Let me see if I can add this functionality for the next version
replied to jMaps Discussion
posted Jul 7th, 2008 in JQuery by Martin Dann
replied to Upload Behavior for CakePHP
posted Sep 6th, 2007 in CakePHP by Graham
replied to Upload Behavior for CakePHP
posted Sep 6th, 2007 in CakePHP by Graham
replied to jMaps Discussion
posted Aug 9th, 2007 in JQuery by sam
replied to jMaps Discussion
posted Aug 1st, 2007 in JQuery by
replied to jMaps Discussion
posted Aug 1st, 2007 in JQuery by Zizotron
replied to jMaps Discussion
posted Jul 31st, 2007 in JQuery by
replied to Upload Behavior for CakePHP
posted Jun 14th, 2007 in CakePHP by