Commit 85d35831 by yao.xiao

补充提交

parent c0920914
...@@ -42,7 +42,7 @@ public class AgmsSharingServiceImpl implements AgmsSharingService { ...@@ -42,7 +42,7 @@ public class AgmsSharingServiceImpl implements AgmsSharingService {
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid", ".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid",
".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso", ".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso",
".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"}; ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"};
if ("uploadimage".equals(action)) { if ("config".equals(action)) {
responseVO.setImageActionName("uploadimage"); responseVO.setImageActionName("uploadimage");
responseVO.setImageFieldName("upfile"); responseVO.setImageFieldName("upfile");
responseVO.setImageMaxSize(2048000); responseVO.setImageMaxSize(2048000);
...@@ -94,7 +94,7 @@ public class AgmsSharingServiceImpl implements AgmsSharingService { ...@@ -94,7 +94,7 @@ public class AgmsSharingServiceImpl implements AgmsSharingService {
responseVO.setFileManagerUrlPrefix(aliOssBucketName); responseVO.setFileManagerUrlPrefix(aliOssBucketName);
responseVO.setFileManagerListSize(20); responseVO.setFileManagerListSize(20);
responseVO.setFileManagerAllowFiles(Arrays.asList(fileAllowFiles)); responseVO.setFileManagerAllowFiles(Arrays.asList(fileAllowFiles));
} else if ("config".equals(action)){ } else if ("uploadimage".equals(action)){
try { try {
String type = upfile.getOriginalFilename().substring(upfile.getOriginalFilename().indexOf(".") + 1); String type = upfile.getOriginalFilename().substring(upfile.getOriginalFilename().indexOf(".") + 1);
byte[] bytes = upfile.getBytes(); byte[] bytes = upfile.getBytes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment