Monday, February 28, 2011

Miles Johnson Uploader - Resize Group Issue.

Hi There

I am having difficulty with the resize functionality of Mile's Uploader Component [1]

The component's function starts with the following line:

if ($this->__data[$this->__current]['group'] != 'image' || $this->enableUpload === false) {

When the conditions pass, the function returns false.

Unfortunately for me, the 'group 'of my image is showing as "application" but this does not prevent me from uploading, it only causes an issue on resize.

Array
(
[name] => 7f000001-fc41-bb39.jpg
[type] => image/jpeg
[tmp_name] => C:\Program Files\EasyPHP-5.3.5.0\tmp\php4E.tmp
[error] => 0
[size] => 25319
[filesize] => 25 KB
[ext] => jpg
[group] => application
[path] => C:\<path_to_project>\app\webroot\profiles/7f000001-fc41-bb39.jpg
[uploaded] => 2011-02-28 20:49:21
)

It seems this is happening to all of my images, it could be something to do with EasyPHP, is it safe to modify the above condition or is there another solution?

--
Kind Regards
 Stephen

 http://www.ninjacodermonkey.co.uk


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: