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); } }