Greetings,
I need to upload files on server using Mojo
Can anyone explain me how to do it on simple example below?
I run with morbo on http://127.0.0.1:3000 this app:
#!/usr/bin/env perl
use Mojolicious::Lite;
post '/' = sub {
my $self = shift;
my $upload = $self-param('model');
my
This won't actually run the transaction, you need to start it with a
UserAgent object:
my $ua = Mojo::UserAgent;
$tx = $ua-start($tx);
Or just use the UserAgent post() method which will build and start the
transaction for you.
On Tue, Apr 21, 2015 at 2:41 AM, Pavel Serikov