diff --git a/src/Kunstmaan/MediaBundle/Helper/File/FileHelper.php b/src/Kunstmaan/MediaBundle/Helper/File/FileHelper.php
index <HASH>..<HASH> 100644
--- a/src/Kunstmaan/MediaBundle/Helper/File/FileHelper.php
+++ b/src/Kunstmaan/MediaBundle/Helper/File/FileHelper.php
@@ -127,11 +127,13 @@ class FileHelper
     public function setFile(File $file)
     {
         $this->file = $file;
-        $this->media->setContent($file);
-        $this->media->setContentType($file->getMimeType());
-        $this->media->setUrl(
-            '/uploads/media/' . $this->media->getUuid() . '.' . $this->media->getContent()->getExtension()
-        );
+        if (strlen($file->getPathname()) > 0) {
+            $this->media->setContent($file);
+            $this->media->setContentType($file->getMimeType());
+            $this->media->setUrl(
+                '/uploads/media/' . $this->media->getUuid() . '.' . $this->media->getContent()->getExtension()
+            );
+        }
     }
 
     /**
additional check for a case when file does not exist (did not upload correctly)