removeOriginal Dont work on MeioUpload !
i have this code in my post model :
/model/post.php
public $actsAs = array(
'MeioUpload.MeioUpload' => array(
'avatar' =>array(
'thumbnails' => true ,
'thumbsizes' => array('small' => array('width'=>100, 'height'=>100)),
'thumbnailQuality' => 75,
'thumbnailDir' => 'thumb',
'removeOriginal' => true
)
)
);
i want to upload thumbs only , I do not need the source picture .
(cakephp 2.1.2)
thanks
This Behaviour is depreciated and no longer supported (https://github.com/jrbasso/MeioUpload) but I had the same problem and have no need to migrate yet.
For anyone in the same boat as me, you can fix it as follows:
Look for this block of code which appears TWICE:
After the SECOND occurrence insert the following code (which does appear already under the first occurence):
I did this in my project and seems to be working just fine so far!