Skip to content

Commit

Permalink
removed outdated upload example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 13, 2013
1 parent e8791e7 commit a8aaedb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -945,16 +945,6 @@ Uploading a large file is even easier.
And once again you don't have to worry about memory usage, all data will be
streamed directly from the file.

use Mojo::UserAgent;
use Mojo::Asset::File;

# Upload file via PUT
my $ua = Mojo::UserAgent->new;
my $asset = Mojo::Asset::File->new(path => '/home/sri/hello.png');
my $tx = $ua->build_tx(PUT => 'mojolicio.us/upload');
$tx->req->content->asset($asset);
$ua->start($tx);

=head2 Non-blocking

L<Mojo::UserAgent> has been designed from the ground up to be non-blocking,
Expand Down

0 comments on commit a8aaedb

Please sign in to comment.