Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into laravel11-support
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Mar 10, 2024
2 parents 46f0df0 + fc25894 commit 90a7423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mixins/MixinUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public static function saveFileToDisk(File $file, string $path, ?string $disk =
$path .= basename($file->file_path ?? $file->file_id);
}

if ($bot->getConfig()->is_local ?? false) {
return $storage->put($path, $bot->downloadUrl($file));
if ($bot->getConfig()->isLocal ?? false) {
return copy(from: $bot->downloadUrl($file), to: $storage->path($path));
}

//create temp file
Expand Down

0 comments on commit 90a7423

Please sign in to comment.