|
|
@ -204,8 +204,8 @@ class FileController extends AdminController
|
|
|
|
$pic_driver = C('PICTURE_UPLOAD_DRIVER');
|
|
|
|
$pic_driver = C('PICTURE_UPLOAD_DRIVER');
|
|
|
|
|
|
|
|
|
|
|
|
if (I('icon')) {
|
|
|
|
if (I('icon')) {
|
|
|
|
if ($_FILES['file']['size'] > 51200) {
|
|
|
|
if ($_FILES['file']['size'] > 2097152) {
|
|
|
|
$return = array('status' => 1001, 'info' => '图片大小不得超过50k', 'data' => '');
|
|
|
|
$return = array('status' => 1001, 'info' => '图片大小不得超过2M', 'data' => '');
|
|
|
|
$this->ajaxReturn($return);
|
|
|
|
$this->ajaxReturn($return);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|