Arkade\S3\Model\ResourceModel\MediaStorage\File\Storage\File::saveFile PHP Method

saveFile() public method

Extend the original functionality of this method by also uploading the requested file to S3.
public saveFile ( string $filePath, string $content, boolean $overwrite = false ) : boolean
$filePath string
$content string
$overwrite boolean
return boolean
    public function saveFile($filePath, $content, $overwrite = false)
    {
        $result = parent::saveFile($filePath, $content, $overwrite);
        if ($result) {
            $this->fileStorageDb->saveFile($filePath);
        }
        return $result;
    }