if (array_shift(explode('/', $this->mimetype)) == 'image') {
$imgs = @getimagesize($file);
if (array_shift(explode('/', $this->mimetype)) == 'image') {
$imgs = @getimagesize($file);
if (!empty($imgs) && !empty($imgs[0]) && !empty($imgs[1])) {
list($this->width , $this->height) = $imgs;
}
if (!empty($imgs) && !empty($imgs[0]) && !empty($imgs[1])) {
list($this->width , $this->height) = $imgs;
}