From 52ec16498109f80a5240ed950672e2dfc1c9746f Mon Sep 17 00:00:00 2001
From: Anthony Borghi <anthony.borghi@veremes.com>
Date: Thu, 31 Jan 2019 16:11:28 +0100
Subject: [PATCH] =?UTF-8?q?Correctif=20sur=20la=20r=C3=A9cup=C3=A9ration?=
 =?UTF-8?q?=20de=20la=20taille=20du=20fichier=20=C3=A0=20retourner?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 vas/rest/ws/vitis/File_downloader.class.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vas/rest/ws/vitis/File_downloader.class.inc b/vas/rest/ws/vitis/File_downloader.class.inc
index 3acbf9e0..bb8749da 100755
--- a/vas/rest/ws/vitis/File_downloader.class.inc
+++ b/vas/rest/ws/vitis/File_downloader.class.inc
@@ -110,6 +110,7 @@ class File_downloader extends Vitis {
                   header("Content-Type: " . $sContentType);
                   header("Content-disposition: attachment; filename=\"" . $sFileName . "\"");
                   header('Content-Length: ' . filesize($sPath));
+                  header('Content-Length: ' . $this->oFilesManager->oFileInterface->filesize($sPath));
                   if ($sContentType === "application/octet-stream") {
                     header("Content-Transfer-Encoding: Binary");
                   }
-- 
GitLab