API docs     >     Files     >     File

File->updateFile

Description

updateFile ( $filename, $filetypeId, $tmpfile, $produceNewVersion = true )
Updates filename, filetype and source file of this File

Parameters

$filename
string
New filename
$filetypeId
int
New Filetype Id
$tmpfile
Temporary file
$produceNewVersion
(optional) TRUE if a new version should be produced

Returns

int|false
New File version or FALSE in case of an error