@Controller
@RequestMapping(value="file")
public class FileController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private ConfigDataComponent |
configDataComponent |
protected FileUploadComponent |
fileUploadComponent |
private org.springframework.web.servlet.LocaleResolver |
localeResolver |
private LockComponent |
lockComponent |
protected org.apache.commons.logging.Log |
log |
private LogUploadService |
logUploadService |
private SafeConfigComponent |
safeConfigComponent |
private SiteComponent |
siteComponent |
构造器和说明 |
---|
FileController() |
限定符和类型 | 方法和说明 |
---|---|
org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> |
privatefile(SysSite site,
long expiry,
java.lang.String sign,
java.lang.String filePath,
java.lang.String filename,
javax.servlet.http.HttpServletRequest request) |
java.util.Map<java.lang.String,java.lang.Object> |
upload(SysSite site,
SysUser user,
boolean privatefile,
java.lang.String captcha,
org.springframework.web.multipart.MultipartFile file,
java.lang.String base64File,
java.lang.String originalFilename,
javax.servlet.http.HttpServletRequest request) |
protected final org.apache.commons.logging.Log log
private LogUploadService logUploadService
private SiteComponent siteComponent
private LockComponent lockComponent
private SafeConfigComponent safeConfigComponent
private ConfigDataComponent configDataComponent
protected FileUploadComponent fileUploadComponent
private org.springframework.web.servlet.LocaleResolver localeResolver
@PostMapping(value="doUpload") @ResponseBody public java.util.Map<java.lang.String,java.lang.Object> upload(@RequestAttribute SysSite site, @SessionAttribute SysUser user, boolean privatefile, java.lang.String captcha, org.springframework.web.multipart.MultipartFile file, java.lang.String base64File, java.lang.String originalFilename, javax.servlet.http.HttpServletRequest request)
site
- user
- privatefile
- captcha
- file
- base64File
- originalFilename
- request
- @RequestMapping(value="private") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> privatefile(@RequestAttribute SysSite site, long expiry, java.lang.String sign, java.lang.String filePath, java.lang.String filename, javax.servlet.http.HttpServletRequest request)
site
- expiry
- sign
- filePath
- filename
- request
-