From 536d01fbddc00ba387d0d91f40c1c23416365adb Mon Sep 17 00:00:00 2001 From: Guillaume DUBOST Date: Wed, 4 Mar 2020 13:33:34 +0100 Subject: [PATCH] Ajout du flag test pour les uploadedfiles --- src/ApiContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiContext.php b/src/ApiContext.php index 51f9b39..87531cd 100644 --- a/src/ApiContext.php +++ b/src/ApiContext.php @@ -121,7 +121,7 @@ public function jUploadLesDocuments(TableNode $files) $filename = $file["file"]; $path = realpath("{$this->requests_path}/{$file["file"]}"); - $this->request["files"][$file["name"]] = new UploadedFile($path, $filename); + $this->request["files"][$file["name"]] = new UploadedFile($path, $filename, mime_content_type($path), filesize($path), null, true); } }