public function __construct() { parent::__construct(TYPEF_DIR . '/files/public/mailform'); }
/** * @param string $name The name of the form field that contains the uploaded image. * @param type $directory The directory where the image will be saved. */ public function __construct($name, $directory) { parent::__construct($directory, 'jpg,jpeg,gif,png'); }