Mojo does not do parsing of "array" parameters, that's a specific PHP sort
of thing. You either need to use the actual names that are posted (you can
parse the list of parameter names from $c->tx->req->params->names) or use a
JSON post so that you have real data structures.

On Fri, Mar 9, 2018 at 2:49 PM, Stanislav Blinov <[email protected]
> wrote:

> I am posting a multidimensional array like this:
>
> files[0][source]:
> files[0][id]:
> files[1][source]:
> files[1][id]:
>
>  And I am unable to get this data in controller.
>  foreach (@{$self->every_param('files[]')})
>
> works in case of one dimensional array (i.e. files[0]), but returns
> nothing for multidimensional.
>
> Any solution for my case?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to