Navigation Menu

Skip to content

Commit

Permalink
slightly better upload examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 19, 2012
1 parent 3823fe6 commit d7885a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.63 2012-03-19 00:00:00
2.63 2012-03-20 00:00:00
- Added find method to Mojolicious::Routes.
- Improved form_for helper to automatically add method="POST"
attributes when necessary.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -547,7 +547,7 @@ which can be combined to solve some of hardest problems in web development.
$tx->req->content->on(upgrade => sub { $tx->emit('request') });
};

# Upload form
# Upload form in DATA section
get '/' => 'index';

# Streaming multipart upload (invoked twice, due to early "request" event)
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -662,8 +662,10 @@ into a temporary file.
use Mojolicious::Lite;
# Upload form in DATA section
get '/' => 'form';
# Multipart upload handler
post '/upload' => sub {
my $self = shift;
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -418,8 +418,8 @@ Generate file input element.
%= submit_button
% end
Generate form for route, path or URL. For routes that allow the C<POST>
method but not C<GET>, a C<method> attribute will be automatically added.
Generate form for route, path or URL. For routes that allow C<POST> but not
C<GET>, a C<method> attribute will be automatically added.
<form action="/path/to/login" method="post">
<input name="first_name" />
Expand Down

0 comments on commit d7885a3

Please sign in to comment.