From 2cc670b58f699e4cd609dcab5e36ea8d1c80466f Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Thu, 20 Apr 2017 14:02:30 +0100 Subject: [PATCH] Improve failed upload error --- lib/Pear/LocalLoop/Controller/Api/Upload.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Pear/LocalLoop/Controller/Api/Upload.pm b/lib/Pear/LocalLoop/Controller/Api/Upload.pm index c0b65bd..abe28f9 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Upload.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Upload.pm @@ -56,7 +56,7 @@ has error_messages => sub { }, file => { required => { message => 'No file uploaded', status => 400 }, - upload => { message => 'No file uploaded', status => 400 }, + upload => { message => 'file key does not contain a file', status => 400 }, filetype => { message => 'File must be of type image/jpeg', status => 400 }, }, organisation_id => {