|
@@ -257,7 +257,6 @@ public class CompatibleOldFileController {
|
|
*/
|
|
*/
|
|
@PostMapping(value = "/common/register_multipart_upload")
|
|
@PostMapping(value = "/common/register_multipart_upload")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- @CrossOrigin(origins = "*",allowedHeaders = "*",allowCredentials = "true",methods = {RequestMethod.POST,RequestMethod.GET})
|
|
|
|
public String registerMultipartUpload() {
|
|
public String registerMultipartUpload() {
|
|
if (StrUtil.isBlank(OldFileAppContext.getContext().getSystemId())
|
|
if (StrUtil.isBlank(OldFileAppContext.getContext().getSystemId())
|
|
|| StrUtil.isBlank(OldFileAppContext.getContext().getKey())){
|
|
|| StrUtil.isBlank(OldFileAppContext.getContext().getKey())){
|
|
@@ -288,7 +287,6 @@ public class CompatibleOldFileController {
|
|
@SneakyThrows
|
|
@SneakyThrows
|
|
@RequestMapping(value = "/common/multipart_upload",consumes = {MediaType.MULTIPART_FORM_DATA})
|
|
@RequestMapping(value = "/common/multipart_upload",consumes = {MediaType.MULTIPART_FORM_DATA})
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- @CrossOrigin(value = "*", origins = "*",allowedHeaders = "*",allowCredentials = "true",methods = {RequestMethod.POST,RequestMethod.GET})
|
|
|
|
public String multipartUpload(@RequestParam(value = "file",required = false) MultipartFile file,
|
|
public String multipartUpload(@RequestParam(value = "file",required = false) MultipartFile file,
|
|
@RequestParam(value = "uploadId",required = false) String uploadId,
|
|
@RequestParam(value = "uploadId",required = false) String uploadId,
|
|
@RequestParam(value = "chunkNumber",required = false) Integer chunkNumber,
|
|
@RequestParam(value = "chunkNumber",required = false) Integer chunkNumber,
|
|
@@ -352,7 +350,6 @@ public class CompatibleOldFileController {
|
|
@SneakyThrows
|
|
@SneakyThrows
|
|
@RequestMapping(value = "/common/merge_multipart")
|
|
@RequestMapping(value = "/common/merge_multipart")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- @CrossOrigin(origins = "*",allowedHeaders = "*",allowCredentials = "true",methods = {RequestMethod.POST,RequestMethod.GET})
|
|
|
|
public String mergeMultipart() {
|
|
public String mergeMultipart() {
|
|
if (StrUtil.isBlank(OldFileAppContext.getContext().getUploadId())){
|
|
if (StrUtil.isBlank(OldFileAppContext.getContext().getUploadId())){
|
|
return INCORRECT_PARAMETERS;
|
|
return INCORRECT_PARAMETERS;
|