We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b90042 commit 81f051bCopy full SHA for 81f051b
src/Request.php
@@ -377,8 +377,8 @@ public function getFiles() : array
377
*/
378
public function setFiles(array $files) : static
379
{
380
- $this->tryUpgradeFromGetToPost();
381
if ($files) {
+ $this->tryUpgradeFromGetToPost();
382
$this->setContentType('multipart/form-data');
383
}
384
$this->files = $files;
0 commit comments