Diego Alexander Arenas Laverde

save images extension as jpg

2 posts in this topic


Solution found, modify file administrator/components/com_bt_property/models/property.php

add this line $imageExt = "jpg";  on line 396


                $imgSource = $_FILES["images"]["tmp_name"][$i];
                $info = getimagesize($imgSource);
                $imageExt = str_replace('image/', '', $info['mime']);
                $imageExt = "jpg"; // save image as jpg *********
                $imageName = md5($pid . strtotime("now") . $_FILES["images"]["name"][$i]) . '.' . $imageExt;


Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now