]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7175 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 5 Nov 2024 18:53:16 +0000 (19:53 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 5 Nov 2024 18:53:16 +0000 (19:53 +0100)
app/Fluidbook/Packager/Download.php

index cc92348a9110d2125d39545af022cc3eaa9f8051..6283d01ab8e40f64a5115e5a6481f4ccbe3b54a5 100644 (file)
@@ -9,6 +9,7 @@ use Cubist\Backpack\Facades\App;
 use Cubist\Backpack\Magic\Models\ExternalServer;
 use Cubist\Net\Transfer\Driver;
 use Cubist\Net\Transfer\Local;
+use Cubist\Net\Transfer\S3;
 use Cubist\Util\CommandLine\Rsync;
 use Cubist\Util\Files\Files;
 use Cubist\Util\Text;
@@ -136,6 +137,9 @@ class Download extends DownloadBase
             $driver->copy($path, $dest, false, false);
 
             $url = $server->makeURL($dest);
+            if ($driver instanceof S3) {
+                $url .= '/index.' . $this->entry->htmlExtension;
+            }
             if (null !== $url) {
                 $actions = [__('Voir sur :server', ['server' => $server->name]) => $url];
             }