Permalink
Browse files

update uploadify

  • Loading branch information...
1 parent a6e4b06 commit 59c4cdb39ad12e6e2fd337281362a7052abf21c5 @vincentchalamon committed Feb 20, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/widget/sfWidgetFormInputUploadify.class.php
View
3 lib/widget/sfWidgetFormInputUploadify.class.php
@@ -28,6 +28,9 @@ public function render($name, $value = null, $attributes = array(), $errors = ar
if($this->getOption('fileExt') && !$this->getOption('fileDesc')) {
throw new sfException(get_class($this)." requires fileDesc option when fileExt option is set.");
}
+ if(!$this->getOption('multi')) {
+ $this->setOption('max', 1);
+ }
if($this->getOption('scriptData') && !is_array($this->getOption('scriptData'))) {
throw new InvalidArgumentException(get_class($this)." requires scriptData to be array.");
}

0 comments on commit 59c4cdb

Please sign in to comment.