From 991f7426e8ec2a566ad82043b22ce844a5a1cfa1 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 12 Feb 2017 13:34:56 -0500 Subject: Improve error reporting when file upload is not configured properly --- app/Controller/AvatarFileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller/AvatarFileController.php') diff --git a/app/Controller/AvatarFileController.php b/app/Controller/AvatarFileController.php index 6879c577..2a63c5ae 100644 --- a/app/Controller/AvatarFileController.php +++ b/app/Controller/AvatarFileController.php @@ -33,7 +33,7 @@ class AvatarFileController extends BaseController $user = $this->getUser(); if (! $this->avatarFileModel->uploadImageFile($user['id'], $this->request->getFileInfo('avatar'))) { - $this->flash->failure(t('Unable to upload the file.')); + $this->flash->failure(t('Unable to upload files, check the permissions of your data folder.')); } $this->response->redirect($this->helper->url->to('AvatarFileController', 'show', array('user_id' => $user['id']))); -- cgit v1.2.3