I'm trying to insert a file into TYPO3 db through frontend using core functions or FileRepository, exactly into sys\_file table.
While investigating I've seen few solutions like,

```
$storageRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\StorageRepository');
$storage = $storageRepository->findByUid(1);

$fileObject = $storage->addFile('/tmp/myfile', $storage->getRootLevelFolder(), 'newFile');
echo $fileObject->getIdentifier(); // Should output "/newFile"

```

But I still can't find this `addFile()` in storageRepository class. Am I missing some thing here?