]> _ Git - odl.git/commitdiff
wip #4793 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 18:59:09 +0000 (20:59 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 18:59:09 +0000 (20:59 +0200)
app/Jobs/ProcessFluidbook.php

index e254cd97ab5dda00f268d7e392e681b4f512d52d..de9c5e6242ea9ee491767fb128622db0fd156580 100644 (file)
@@ -73,8 +73,10 @@ class ProcessFluidbook extends Compiler
         $zip = Files::tempnam() . '.zip';
 
         foreach ($collection as $item) {
+            $path = $item->getPath();
+            $spl = new \SplFileInfo($path);
             /** @var $item Media */
-            copy($item->getPath(), $tmp);
+            copy($path, $tmp . $spl->getFilename());
         }
         Zip::archive($tmp, $zip);
         Files::rmdir($tmp);