mirror of https://gitee.com/karson/fastadmin.git
修复上传时不返回AJAX格式信息
parent
7cf6ff9f0b
commit
829395b491
|
|
@ -48,6 +48,7 @@ class Ajax extends Backend
|
||||||
*/
|
*/
|
||||||
public function upload()
|
public function upload()
|
||||||
{
|
{
|
||||||
|
Config::set('default_return_type', 'json');
|
||||||
$file = $this->request->file('file');
|
$file = $this->request->file('file');
|
||||||
if (empty($file))
|
if (empty($file))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue