Parcourir la source

Update Request.php

to allow array of files
like
name[0]=f1
name[1]=f2
Ezzalddeen Ali il y a 3 ans
Parent
commit
5d03a9ee0b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Protocols/Http/Request.php

+ 1 - 1
src/Protocols/Http/Request.php

@@ -592,7 +592,7 @@ class Request
             \array_walk_recursive($result, function (&$value) use ($file) {
                 $value = $file;
             });
-            $this->_data['files'] = \array_merge($this->_data['files'], $result);
+            $this->_data['files'] = \array_merge_recursive($this->_data['files'], $result);
         }
         if ($post_str) {
             parse_str($post_str, $this->_data['post']);