Class ManageFileAction

java.lang.Object
net.mingsoft.base.action.BaseAction

@Controller("ManageFileAction") @RequestMapping("${ms.manager.path}/file") public class ManageFileAction extends BaseFileAction
上传文件
  • Constructor Details

    • ManageFileAction

      public ManageFileAction()
  • Method Details

    • upload

      @LogAnn(title="\u5904\u7406post\u8bf7\u6c42\u4e0a\u4f20\u6587\u4ef6", businessType=OTHER) @PostMapping(value="/upload", consumes="multipart/*", headers="content-type=multipart/form-data") @ResponseBody public net.mingsoft.base.entity.ResultData upload(UploadConfigBean bean, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException
      处理post请求上传文件 可以自定义项目路径下任意文件夹
      Parameters:
      req - HttpServletRequest对象
      res - HttpServletResponse 对象
      Throws:
      jakarta.servlet.ServletException - 异常处理
      IOException - 异常处理
    • uploadTemplate

      @PostMapping("/uploadTemplate") @ResponseBody @RequiresPermissions("basic:template:upload") public net.mingsoft.base.entity.ResultData uploadTemplate(UploadConfigBean bean, jakarta.servlet.http.HttpServletResponse res) throws IOException
      Throws:
      IOException
    • checkUploadPath

      protected boolean checkUploadPath(UploadConfigBean bean)