wzq 5 lat temu
rodzic
commit
5934907bd4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Console/Commands/Downloads.php

+ 1 - 1
app/Console/Commands/Downloads.php

@@ -81,7 +81,7 @@ class Downloads extends Command
         $filePath = $fileDir .$download->username.$fileName;
         try {
             $this->postRepository->download($filePath, $download->download_type, json_decode($download->params, true));
-            Storage::put(public_path($filePath), file_get_contents($fileName));
+            Storage::put(public_path($filePath), file_get_contents(public_path($filePath).$fileName));
             $download->url = $filePath;
             $download->download_status = 2;
             $download->save();