Closed webineh closed 7 years ago
how i can use functions like
protected function tmbname($stat) { $ext = 'png'; if($stat['mime'] == 'image/jpeg'){$ext = 'jpg';} if($stat['mime'] == 'image/gif'){$ext = 'gif';} return current(explode('.', $stat['name'])).'.'.$ext; // return $stat['hash'].$stat['ts'].'.png'; }
this function set orginal file in thubnail
thankyou
how i can use functions like
protected function tmbname($stat) { $ext = 'png'; if($stat['mime'] == 'image/jpeg'){$ext = 'jpg';} if($stat['mime'] == 'image/gif'){$ext = 'gif';} return current(explode('.', $stat['name'])).'.'.$ext; // return $stat['hash'].$stat['ts'].'.png'; }
this function set orginal file in thubnail
thankyou