diff --git a/src/bulletproof.php b/src/bulletproof.php index 9adef22..8972d82 100644 --- a/src/bulletproof.php +++ b/src/bulletproof.php @@ -400,7 +400,10 @@ public function setStorage($dir = 'uploads', $permission = 0666) * @return boolean */ protected function constraintValidator() - { + { + // handle naming of file + $this->setName(); + /* check image for valid mime types and return mime */ $this->getImageMime($this->_files['tmp_name']);