in reply to Handling multiple file upload with Mojo
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Handling multiple file upload with Mojo
by Anonymous Monk on Nov 05, 2014 at 16:21 UTC |