ok i got half way there.....
case WADFP_JPEG:
$newFilePath = preg_replace( $fileExtensionRegExp, $uniqueFileNamePart, $imageFilePath).'.small.jpg';
$endExtension = 'small.jpg';
I added the .small into the part at the end of helperphp.php where it names the file.... And it Works!!! almost.... I need a way to defferentiate which ones get a .large and which ones get a .small according to the final destination folder.....
I tried going off the value of $val['UploadFolder'] so that it looked like this....
case WADFP_JPEG:
if ($val['UploadFolder'] == 'videos/uploads/'){
$newFilePath = preg_replace( $fileExtensionRegExp, $uniqueFileNamePart, $imageFilePath).'.jpg';
$endExtension = 'jpg';
}
elseif ($val['UploadFolder'] == 'videos/uploads/thumbs/'){
$newFilePath = preg_replace( $fileExtensionRegExp, $uniqueFileNamePart, $imageFilePath).'.small.jpg';
$endExtension = 'small.jpg';
}
/**/
$imageQuality = intval($imageOptions[1]);
if($imageQuality > 100){
$imageQuality = 100;
}
if($imageQuality < 0 ){
$imageQuality = 0;
}
imagejpeg($tmp,$newFilePath,$imageQuality);
break;
But that resulted in no file at all being uplaoded..... which i dont get b/c the value of $val['UploadFolder'] is 'videos/uploads/thumbs/'... so one of em should execute at least...
Need a lil help on this, even just an idea?