优化调整
This commit is contained in:
parent
a8df2633fd
commit
5057d16261
@ -32,6 +32,7 @@ import java.io.OutputStream;
|
||||
import java.util.List;
|
||||
|
||||
import static cn.axzo.oss.common.enums.CodeEnum.FILE_NAME_TOO_LONG;
|
||||
import static org.springframework.http.MediaType.MULTIPART_FORM_DATA_VALUE;
|
||||
|
||||
/**
|
||||
* 前端文件controller
|
||||
@ -72,7 +73,7 @@ public class WebFileController {
|
||||
return CommonResponse.success(result);
|
||||
}
|
||||
|
||||
@PostMapping("/v2/file")
|
||||
@PostMapping(value = "/v2/file", consumes = MULTIPART_FORM_DATA_VALUE)
|
||||
@CrossOrigin
|
||||
@SneakyThrows
|
||||
@PreBuildContext
|
||||
|
||||
Loading…
Reference in New Issue
Block a user