visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
5b343f6bcd

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

@@ -100,7 +100,7 @@ class ExportZip extends Command
         Log::debug('export offline: upload file {filename}',['filename'=>$zipFile]);
 
         $bucket = 'attachments-'.config('app.env');
-        $tmpFile =  "{$bucket}\{$zipFile}";
+        $tmpFile =  $bucket.'/'. $zipFile ;
         Storage::put($tmpFile, file_get_contents($zipFullFileName));
 
         $this->info('upload done file='.$tmpFile);

+ 1 - 1
app/Http/Controllers/OfflineIndexController.php

@@ -25,7 +25,7 @@ class OfflineIndexController extends Controller
             foreach ($fileInfo as $key => $file) {
                 $zipFile = $file['filename'];
                 $bucket = 'attachments-'.config('app.env');
-                $tmpFile =  "{$bucket}\{$zipFile}";
+                $tmpFile =  $bucket.'/'. $zipFile ;
                 $url = array();
                 foreach (config('mint.server.cdn_urls') as $key => $cdn) {
                     $url[] = [