wzq před 5 roky
rodič
revize
9f92837e1f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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(public_path($filePath).$fileName));
+            Storage::put(public_path($filePath), file_get_contents(public_path($filePath)));
             $download->url = $filePath;
             $download->download_status = 2;
             $download->save();