Take a look at the documentation for upload and every_upload methods. Your code would look similar to this:
post '/' => sub { my $c = shift; my @files; for my $file ($c->req->upload('files')) { push @files, $file->filename; } $c->render(text => "@files"); } => 'save';
Look here for an answer to a similar question.
- Luke
In reply to Re: Handling multiple file upload with Mojo
by blindluke
in thread Handling multiple file upload with Mojo
by trippledubs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |