Files
mier-php/application/admin/controller/Upload.php
2025-08-11 10:22:05 +08:00

18 lines
422 B
PHP

<?php
namespace app\admin\controller;
use think\Controller;
use think\Request;
class Upload extends Common
{
public function file_upload()
{
$file = request()->file('file');
$file_category_name = input('file_category', 'all');
$reslut = model('Upload')->single_file_upload($file, $file_category_name);
return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']);
}
}