diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-12 13:34:56 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-12 13:34:56 -0500 |
commit | 991f7426e8ec2a566ad82043b22ce844a5a1cfa1 (patch) | |
tree | a0ff32313ad511ebdd9ea71180c86aa5b0002204 /app/Controller/AvatarFileController.php | |
parent | a172e3ad8d25e9b77616107ce8a622175ab0d698 (diff) |
Improve error reporting when file upload is not configured properly
Diffstat (limited to 'app/Controller/AvatarFileController.php')
-rw-r--r-- | app/Controller/AvatarFileController.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']))); |