diff --git a/EventListener/Cloner/CopyUploadablesSubscriber.php b/EventListener/Cloner/CopyUploadablesSubscriber.php
index <HASH>..<HASH> 100644
--- a/EventListener/Cloner/CopyUploadablesSubscriber.php
+++ b/EventListener/Cloner/CopyUploadablesSubscriber.php
@@ -129,6 +129,10 @@ class CopyUploadablesSubscriber implements EventSubscriberInterface
      */
     private function generateTmpPathname(): string
     {
+        if (!is_dir($this->tmpDir) && !mkdir($this->tmpDir, 0777, true)) {
+            throw new \RuntimeException(sprintf('Unable to create temporary files directory "%s".', $this->tmpDir));
+        }
+
         $pathname = @tempnam($this->tmpDir, '');
 
         if (false === $pathname) {
Create temporary files directory in copy uploadables event subscriber.