public function createFromBlob(Request $request, Site $site): array
    {
        $this->authorize('uploadAssets', $site);

        $file = $request->file('file');
        $error = $this->validateFile($file);

        if ($error !== true) {
            return [];
        }

        $description = trans('boomcms::asset.automatic-upload-description', [
            'url' => $request->input('url'),
        ]);

        $asset = AssetFacade::createFromFile($file);
        $asset->setDescription($description);
        AssetFacade::save($asset);

        $album = AlbumFacade::findOrCreate('Text editor uploads');
        $album->addAssets([$asset->getId()]);

        return [
            'location' => route('asset', ['asset' => $asset]),
        ];
    }