trippledubs has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
Is there a way to handle multiple file uploads on the server side? i want the user to be able to select an unlimited amount of files and upload them all at one time. I realize that all browsers in use may not support the multiple tag.
#!/usr/bin/env perl use strict; use warnings; use Mojolicious::Lite; get '/upload' => sub { my $c = shift; $c->render('simpleUploadForm'); }; app->start; __DATA__ @@ simpleUploadForm.html.ep <!DOCTYPE html> <html> <form action='/handleUpload' autocomplete="off"> Select Files: <input type="file" name="img" multiple> <input type="submit"> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Handling multiple file upload with Mojo
by blindluke (Hermit) on Nov 05, 2014 at 15:32 UTC | |
by Anonymous Monk on Nov 05, 2014 at 16:21 UTC | |
|
Re: Handling multiple file upload with Mojo
by trippledubs (Deacon) on Nov 06, 2014 at 02:26 UTC |