public function saveAsTempFile(bool $deleteTempFile = true)
    {
        if ($this->error != UPLOAD_ERR_OK) {
            return false;
        }
        $tempPath = FileHelper::getTempFilePath($this->name);
        if (!$this->saveAs($tempPath, $deleteTempFile)) {
            return false;
        }
        return $tempPath;
    }