If there's a failure storing uploaded file, make sure to show it

This commit is contained in:
nathangray 2019-04-29 16:03:34 -06:00
parent e5b3aea258
commit a4a4a32d7b

View File

@ -137,6 +137,11 @@ class Vfs extends File
$file_data[basename($file['tmp_name'])]['mime'] = $file['type'];
$file_data[basename($file['tmp_name'])]['mtime'] = time();
}
else
{
// Something happened with the VFS
$file_data[basename($file['tmp_name'])] = lang('Server error');
}
}
/**