@RestController @RequestMapping(value="/erupt-api/file") public class EruptFileController extends Object
Constructor and Description |
---|
EruptFileController() |
Modifier and Type | Method and Description |
---|---|
void |
downloadAttachment(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
EruptApiModel |
upload(String eruptName,
String fieldName,
org.springframework.web.multipart.MultipartFile file) |
Map<String,Object> |
uploadHtmlEditorImage(String eruptName,
String fieldName,
org.springframework.web.multipart.MultipartFile file) |
EruptApiModel |
uploads(String eruptName,
String fieldName,
org.springframework.web.multipart.MultipartFile[] files) |
void |
uploadUEditorImage(String eruptName,
String fieldName,
String callback,
org.springframework.web.multipart.MultipartFile file,
javax.servlet.http.HttpServletResponse response) |
@PostMapping(value="/upload/{erupt}/{field}") @EruptRouter(authIndex=2, verifyType=ERUPT) public EruptApiModel upload(@PathVariable(value="erupt") String eruptName, @PathVariable(value="field") String fieldName, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile file)
@PostMapping(value="/uploads/{erupt}/{field}") @EruptRouter(authIndex=2, verifyType=ERUPT) public EruptApiModel uploads(@PathVariable(value="erupt") String eruptName, @PathVariable(value="field") String fieldName, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile[] files)
@PostMapping(value="/upload-html-editor/{erupt}/{field}") @EruptRouter(authIndex=2, verifyMethod=PARAM, verifyType=ERUPT) public Map<String,Object> uploadHtmlEditorImage(@PathVariable(value="erupt") String eruptName, @PathVariable(value="field") String fieldName, @RequestParam(value="upload") org.springframework.web.multipart.MultipartFile file) throws ClassNotFoundException
ClassNotFoundException
@GetMapping(value="/upload-ueditor/{erupt}/{field}") @EruptRouter(authIndex=2, verifyMethod=PARAM, verifyType=ERUPT) public void uploadUEditorImage(@PathVariable(value="erupt") String eruptName, @PathVariable(value="field") String fieldName, @RequestParam(value="callback",required=false) String callback, @RequestParam(value="file",required=false) org.springframework.web.multipart.MultipartFile file, javax.servlet.http.HttpServletResponse response) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
@GetMapping(value="/download-attachment/**", produces="application/octet-stream") public void downloadAttachment(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
Copyright © 2022. All rights reserved.