Skip to content

Commit 296761d

Browse files
themsaidtaylorotwell
authored andcommitted
mind file uploads in nested array keys (#18276)
1 parent 4608339 commit 296761d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php

+4
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ protected function extractFilesFromDataArray(&$data)
304304

305305
unset($data[$key]);
306306
}
307+
308+
if (is_array($value)) {
309+
$files[$key] = $this->extractFilesFromDataArray($value);
310+
}
307311
}
308312

309313
return $files;

0 commit comments

Comments
 (0)