@@ -32,7 +32,7 @@ class Local extends Core implements Config
$file = Dever::load('upload/file-name', array('where_name' => $this->name, 'where_upload' => $this->data['key'], 'rand' => time()));
}
- if (!$this->limit) {
+ if (!$this->limit && ($this->ext == '.jpg' || $this->ext == '.gif' || $this->ext == '.png')) {
$this->limit = getimagesize($this->output['file']);