diff --git a/vas/rest/ws/vitis/File_downloader.class.inc b/vas/rest/ws/vitis/File_downloader.class.inc
index 202046917b9cd9caa1712b871c80ce1cd7006d30..2fab279f3a65052cd40f379b6b9faf67126addb3 100644
--- a/vas/rest/ws/vitis/File_downloader.class.inc
+++ b/vas/rest/ws/vitis/File_downloader.class.inc
@@ -141,7 +141,9 @@ class File_downloader extends Vitis {
           if($bReturnFile){
             session_write_close();
             $this->getFile($sPath, end(explode("/", $this->aValues["key"])));
-            unlink($sPath);
+            if ($this->aProperties["fileS3Uploader"]){
+              unlink($sPath);
+            }
           }
 
         } else {