aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index ca2dfc6b5..e7468986b 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -856,6 +856,7 @@ sub process_photo_upload : Private {
# check that the photo is a jpeg
my $ct = $upload->type;
unless ( $ct eq 'image/jpeg' || $ct eq 'image/pjpeg' ) {
+ $c->log->info('Bad photo tried to upload, type=' . $ct);
$c->stash->{photo_error} = _('Please upload a JPEG image only');
return;
}