Skip to content

Commit

Permalink
Ajout du flag test pour les uploadedfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume DUBOST committed Mar 4, 2020
1 parent 652d154 commit 536d01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 536d01f

Please sign in to comment.