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 to public disk for media uploads

Sebastian Albert78bee705ff70
diff --git a/app/Models/Traits/HasMedia.php b/app/Models/Traits/HasMedia.php
index c1b9cb5e7..7fbb85900 100644
--- a/app/Models/Traits/HasMedia.php
+++ b/app/Models/Traits/HasMedia.php
@@ -88,7 +88,7 @@ trait HasMedia
$filename = Str::uuid().'.'.$normalizedExt;
$path = 'medias/'.$filename;
- Storage::put($path, $normalizedBytes);
+ Storage::disk('public')->put($path, $normalizedBytes);
return $this->media()->create([
'group_id' => $groupId ?? Str::uuid()->toString(),
@@ -126,7 +126,7 @@ trait HasMedia
$filename = Str::uuid().'.'.$normalizedExt;
$storagePath = 'medias/'.$filename;
- Storage::put($storagePath, $normalizedBytes);
+ Storage::disk('public')->put($storagePath, $normalizedBytes);
return $this->media()->create([
'group_id' => $groupId ?? Str::uuid()->toString(),