Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Refactor storage method for asset uploads

Sebastian Albert16d69e433841
diff --git a/app/Http/Controllers/App/AssetController.php b/app/Http/Controllers/App/AssetController.php
index 0a89a4fb2..eab0588d2 100644
--- a/app/Http/Controllers/App/AssetController.php
+++ b/app/Http/Controllers/App/AssetController.php
@@ -145,7 +145,7 @@ class AssetController extends Controller
$filename = Str::uuid().'.'.$extension;
$path = 'medias/'.$filename;
- Storage::disk('public')->put($path, $response->body());
+ Storage::put($path, $response->body());
$meta = [];
$tempFile = tempnam(sys_get_temp_dir(), 'unsplash');