Permalink
Browse files

Simplify File element for review

  • Loading branch information...
1 parent efb051e commit 1af218ee22f0084650407f5569243aefa15415d5 @cgmartin committed Sep 28, 2012
Showing with 0 additions and 15 deletions.
  1. +0 −15 library/Zend/Form/Element/File.php
@@ -59,21 +59,6 @@ public function prepareElement(Form $form)
}
/**
- * @return boolean|string
- */
- public function getFileName()
- {
- $value = $this->getValue();
- if (!isset($value['error']) || $value['error'] !== UPLOAD_ERR_OK
- || !isset($value['tmp_name']) || !is_uploaded_file($value['tmp_name'])
- ) {
- return false;
- }
-
- return $value['tmp_name'];
- }
-
- /**
* Should return an array specification compatible with
* {@link Zend\InputFilter\Factory::createInput()}.
*

0 comments on commit 1af218e

Please sign in to comment.