description);
if(mb_strlen($this->value) == 0){
$ret = ""._("No file uploaded yet")."";
$ret.= "
postName}\"
name=\"{$this->postName}\"
type=\"file\"
size=\"20\"
maxlength=\"255\"
accept=\"*.*\"> ";
$ret.= "";
}else{
$ret = ""._("File uploaded").": ".mb_strlen($this->value)." "._("Bytes");
$ret.= " ";
}
return($ret);
}
function save_object()
{
if(isset($_POST["{$this->postName}_Upload"]) && isset($_FILES[$this->postName]['tmp_name'])){
$this->value = file_get_contents($_FILES[$this->postName]['tmp_name']);
}
if(isset($_POST["{$this->postName}_Remove"])) $this->value ="";
}
}
?>