Skip to content

Commit

Permalink
add missing backslash in file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Redfern committed Jan 15, 2021
1 parent a0234ae commit 0522e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/AvatarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function store(Request $request)
try {
$user = Auth::user();
$filePath = Storage::disk('spaces')
->putFile('avatars/user-'.$user->id, $request->file, 'public');
->putFile('/avatars/user-'.$user->id, $request->file, 'public');
$user->avatar = env('DO_SPACES_PUBLIC').$filePath;
$user->save();
} catch (Exception $exception) {
Expand Down

0 comments on commit 0522e83

Please sign in to comment.