Improve failed upload error

This commit is contained in:
Tom Bloor 2017-04-20 14:02:30 +01:00
parent e9f4888a8c
commit 2cc670b58f

View file

@ -56,7 +56,7 @@ has error_messages => sub {
}, },
file => { file => {
required => { message => 'No file uploaded', status => 400 }, 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 }, filetype => { message => 'File must be of type image/jpeg', status => 400 },
}, },
organisation_id => { organisation_id => {