skipperbent / simple-php-router

Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
631 stars 116 forks source link

Undefined array key 0 in /var/www/abc-/vendor/pecee/simple-router/src/Pecee/Http/Input/InputHandler.php on line 163 when mulptile file upload e.g images[id][] #717

Open bilalicup opened 3 weeks ago

bilalicup commented 3 weeks ago

when uploading multiple files e.g images[attributeId][] throwing exception on line no 163 in InputHandler. get data from $original['name'][$key] which is incorrect becuase $key assume is 0,1,2, key in id(attributeID) input field <input type="file" id="{{ $fieldId }}" name="attributeFiles[{{$attribute->id}}][]" multiple {{ $isRequired ? 'required' : '' }} class="filepond filepond-input-multiple attribute{{ $attribute->id }}">