Created
November 13, 2014 21:48
-
-
Save ispyhumanfly/19043d340d78385ea624 to your computer and use it in GitHub Desktop.
Example of using Mojo's upload handling...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($self->req->upload('photos')) { | |
push @photos, | |
process_photo($self->req->upload('photos'), $new_content->id); | |
$MODEL->resultset('Content')->search({id => $new_content->id}) | |
->update({photos => "@photos"}) | |
if scalar @photos >= 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment