Skip to content

Commit

Permalink
better multipart example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 13, 2013
1 parent ee29c0e commit 8cfe79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1008,7 +1008,7 @@ The C<json> and C<form> generators are always available.

# Send "multipart/form-data" content via PUT
my $tx3 = $ua->put('http://upload.mojolicio.us' =>
form => {image => {file => '/home/sri/hello.png'}});
form => {test => {content => 'Hello World!'}});

For more information about available generators see also
L<Mojo::UserAgent::Transactor/"tx">.
Expand Down

0 comments on commit 8cfe79e

Please sign in to comment.