Call this to upload a template file. Note: Template::UpdateStatus()
will be called automatically for you if this is successful.
public static OnUpload ( $f_fileVarName, string $p_baseUpload, string $p_desiredName = null, string $p_charset = null ) : mixed | ||
$p_baseUpload | string | Directory path to add to the base template directory. |
$p_desiredName | string | Desired name of the file. |
$p_charset | string | Desired character set of the file. |
return | mixed | TRUE on success, PEAR_Error on failure. |