diff --git a/server/src/Action/ArchiveAction.php b/server/src/Action/ArchiveAction.php
index a40045c1d12de8b5c144c003844b6edc6d79902d..0b43917b15cb20be01cf249365fb84c304e6bbf4 100644
--- a/server/src/Action/ArchiveAction.php
+++ b/server/src/Action/ArchiveAction.php
@@ -151,7 +151,7 @@ final class ArchiveAction extends AbstractAction
             foreach ($attributesSelected as $attribute) {
                 $attributeLabel = $attribute->getLabel();
                 $filePath = $this->dataPath . $dataset->getFullDataPath() . DIRECTORY_SEPARATOR . $row[$attributeLabel];
-                if (file_exists($filePath)) {
+                if (file_exists($filePath) && is_file($filePath)) {
                     $zip->addFile($filePath, $row[$attributeLabel]);
                 }
             }