修复上传时不返回AJAX格式信息

pull/9/head
Karson 2017-08-09 18:22:20 +08:00
parent 7cf6ff9f0b
commit 829395b491
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ class Ajax extends Backend
*/
public function upload()
{
Config::set('default_return_type', 'json');
$file = $this->request->file('file');
if (empty($file))
{