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.

Change storage method to use public disk for assets

Sebastian Albert3018c0353f76
diff --git a/app/Http/Controllers/App/AssetController.php b/app/Http/Controllers/App/AssetController.php
index eab0588d2..0a89a4fb2 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::put($path, $response->body());
+ Storage::disk('public')->put($path, $response->body());
$meta = [];
$tempFile = tempnam(sys_get_temp_dir(), 'unsplash');