Skip to content

Commit

Permalink
Remove dead code from upload example:
Browse files Browse the repository at this point in the history
This is a port of a commit by racke (GH #1329).
  • Loading branch information
xsawyerx committed Mar 8, 2017
1 parent ebaf242 commit e89ee07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Dancer2/Manual.pod
Original file line number Diff line number Diff line change
Expand Up @@ -1292,8 +1292,7 @@ The objects are accessible within the route handlers using the C<upload>
keyword:

post '/upload' => sub {
my $upload_dir = "MyApp/UPLOADS";
my $upload = upload('file_input_name'); # upload object
my $upload = upload('file_input_name'); # upload object
$upload->copy_to('Uploads/');
};

Expand Down

0 comments on commit e89ee07

Please sign in to comment.