# somewhere in your view:<form action="/upload" method="POST" enctype="multipart/form-data"> <input type="file" name="filename"> <input type="submit"></form># and then in your application handler:post '/upload' => sub { my $file = request->upload('filename'); $file->copy_to($upload_dir); # or whatever you need};AlexBecause, when I was a real noob, I learned Perl from scripts like these. And I still enjoy learning new things this way.Dear all,is there a tutorial how to create a Perl upload form with Dancer? Something basic and simple like this but without CGI? -> http://www.perlmeme.org/tutorials/cgi_upload.html
Regards,
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users