/* Search from */
$form = new Horde_Form($vars);
-$msg = _("Please upload photo with the face to search for. You can search only one face per time.");
-$form->addVariable(_("Face to search for"), 'image', 'image', true, false, $msg, array(false));
+$msg = _("Please upload photo with the face to search for. You can search only one face at a time.");
+$form->addVariable(_("Face to search for"), 'image', 'file', true, false, $msg, array(false));
$form->setButtons(_("Upload"));
if ($form->validate()) {
$this->addHidden('', 'image0', 'text', false);
$upload = &$this->addVariable(
- _("Replace photo with this file"), 'file0', 'image', false, false,
+ _("Replace photo with this file"), 'file0', 'file', false, false,
_("Maximum photo size:") . ' ' . $filesize, array(false));
$upload->setHelp('upload');
}
$this->addHidden('', 'image0', 'text', false);
if (!strlen($vars->get('image0'))) {
$upload = &$this->addVariable(
- _("File to upload"), 'file0', 'image', false, false,
+ _("File to upload"), 'file0', 'file', false, false,
_("Maximum photo size:") . ' ' . $filesize, array(false));
$upload->setHelp('upload');
}
for ($i = 1; $i <= $conf['image']['num_uploads']; $i++) {
$this->addHidden('', 'image' . $i, 'text', false);
if (!strlen($vars->get('image' . $i))) {
- $upload = &$this->addVariable(sprintf(_("File %s"), $i), 'file' . $i, 'image', false, false, null, array(false));
+ $upload = &$this->addVariable(sprintf(_("File %s"), $i), 'file' . $i, 'file', false, false, null, array(false));
$upload->setHelp('upload');
}
}