* Add function saveAsTempFile to file module.

This commit is contained in:
wangjianhua
2022-11-10 17:05:35 +08:00
parent cd5749835e
commit afd90092bb
+13
View File
@@ -1226,4 +1226,17 @@ class fileModel extends model
{
return filesize($file->realPath);
}
/**
* Save file to local storage temporarily.
*
* @param object $file
* @access public
* @return string
*/
public function saveAsTempFile($file)
{
/* If the storage type is local, do nothing. */
if($this->config->file->storageType == 'fs') return $file->realPath;
}
}