Browse Source

文件限制 加动钥匙

master
蟑螂恶霸 2 years ago
parent
commit
3908074b5c
  1. 2
      lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/common/utils/file/FileUploadUtils.java
  2. 13
      lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/common/utils/file/MimeTypeUtils.java
  3. 41
      lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ShiroConfig.java
  4. 4
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml
  5. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/home/add.html
  6. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/home/edit.html
  7. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/medal/add.html
  8. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/medal/detail.html
  9. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/medal/edit.html
  10. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/medal/selected.html
  11. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/add.html
  12. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/addNew.html
  13. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/detail.html
  14. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/edit.html
  15. 1
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question2/index.html
  16. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/add.html
  17. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/detail.html
  18. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/edit.html
  19. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/attaLibrary/add.html
  20. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/attaLibrary/detail.html
  21. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/attaLibrary/edit.html
  22. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/banner/add.html
  23. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/banner/detail.html
  24. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/banner/edit.html
  25. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/image/add.html
  26. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/image/detail.html
  27. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/image/edit.html
  28. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/library/add.html
  29. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/library/detail.html
  30. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/library/edit.html
  31. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/question/add.html
  32. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/question/detail.html
  33. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/question/edit.html
  34. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/tab/add.html
  35. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/tab/detail.html
  36. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/tab/edit.html
  37. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/tab/selected.html

2
lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/common/utils/file/FileUploadUtils.java

@ -114,7 +114,7 @@ public class FileUploadUtils
throw new FileNameLengthLimitExceededException(FileUploadUtils.DEFAULT_FILE_NAME_LENGTH);
}
assertAllowed(file, allowedExtension);
assertAllowed(file, allowedExtension);
String fileName = extractFilename(file);

13
lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/common/utils/file/MimeTypeUtils.java

@ -26,13 +26,14 @@ public class MimeTypeUtils
public static final String[] DEFAULT_ALLOWED_EXTENSION = {
// 图片
"bmp", "gif", "jpg", "jpeg", "png",
"bmp", "gif", "jpg", "jpeg", "png", "mp4"
// word excel powerpoint
"doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt",
// 压缩文件
"rar", "zip", "gz", "bz2",
// pdf
"pdf","apk", "mp4" , "mkv"};
// "doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt",
// // 压缩文件
// "rar", "zip", "gz", "bz2",
// // pdf
// "pdf","apk", "mkv"
};
public static String getExtension(String prefix)
{

41
lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ShiroConfig.java

@ -26,6 +26,8 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.servlet.Filter;
import java.util.LinkedHashMap;
@ -346,20 +348,39 @@ public class ShiroConfig {
}
/**
* 记住我
* 记住我 老版不安全
*/
public CookieRememberMeManager rememberMeManager()
{
// public CookieRememberMeManager rememberMeManager()
// {
// CookieRememberMeManager cookieRememberMeManager = new CookieRememberMeManager();
// cookieRememberMeManager.setCookie(rememberMeCookie());
// if (StringUtils.isNotEmpty(cipherKey))
// {
// cookieRememberMeManager.setCipherKey(Base64.decode(cipherKey));
// }
// else
// {
// cookieRememberMeManager.setCipherKey(CipherUtils.generateNewKey(128, "AES").getEncoded());
// }
// return cookieRememberMeManager;
// }
/**
* 记住我 新版, 为了反序列化安全问题, 动态秘钥
*/
public CookieRememberMeManager rememberMeManager() {
CookieRememberMeManager cookieRememberMeManager = new CookieRememberMeManager();
cookieRememberMeManager.setCookie(rememberMeCookie());
if (StringUtils.isNotEmpty(cipherKey))
{
cookieRememberMeManager.setCipherKey(Base64.decode(cipherKey));
}
else
{
cookieRememberMeManager.setCipherKey(CipherUtils.generateNewKey(128, "AES").getEncoded());
try {
KeyGenerator keygen = KeyGenerator.getInstance("AES");
SecretKey deskey = keygen.generateKey();
String value = Base64.encodeToString(deskey.getEncoded());
cookieRememberMeManager.setCipherKey(Base64.decode(value));
// cookieRememberMeManager.setCipherKey(Base64.decode(cipherKey));
} catch(Exception e) {
}
// cookieRememberMeManager.setCipherKey(Base64.decode("fCq+/xW488hMTCD+cmJ3aQ=="));
return cookieRememberMeManager;
}

4
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml

@ -10,8 +10,8 @@ ruoyi:
demoEnabled: true
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
# profile: E:/ruoyi/uploadPath
# profile: /Users/kylin_stone/Workspaces/upload
profile: /usr/local/upload
profile: /Users/kylin_stone/Workspaces/upload
# profile: /usr/local/upload
# 获取ip地址开关
addressEnabled: true
servername: https://civildrill.com:9528

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/home/add.html

@ -97,7 +97,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/home/edit.html

@ -137,7 +137,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/medal/add.html

@ -135,7 +135,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/medal/detail.html

@ -159,7 +159,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/medal/edit.html

@ -147,7 +147,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/medal/selected.html

@ -108,7 +108,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/add.html

@ -149,7 +149,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/addNew.html

@ -168,7 +168,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/detail.html

@ -169,7 +169,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question/edit.html

@ -181,7 +181,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

1
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/question2/index.html

@ -347,6 +347,7 @@
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
allowedFileExtensions: ['jpg','png','bmp','jpeg', 'mp4'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/add.html

@ -110,7 +110,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/detail.html

@ -179,7 +179,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/scene/edit.html

@ -183,7 +183,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/attaLibrary/add.html

@ -87,7 +87,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/attaLibrary/detail.html

@ -134,7 +134,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/attaLibrary/edit.html

@ -128,7 +128,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/banner/add.html

@ -124,7 +124,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/banner/detail.html

@ -174,7 +174,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/banner/edit.html

@ -167,7 +167,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/image/add.html

@ -88,7 +88,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/image/detail.html

@ -135,7 +135,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/image/edit.html

@ -129,7 +129,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/library/add.html

@ -179,7 +179,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/library/detail.html

@ -212,7 +212,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/library/edit.html

@ -249,7 +249,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/question/add.html

@ -174,7 +174,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/question/detail.html

@ -203,7 +203,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/smallProgram/question/edit.html

@ -215,7 +215,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/tab/add.html

@ -101,7 +101,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/tab/detail.html

@ -140,7 +140,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/tab/edit.html

@ -140,7 +140,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/tab/selected.html

@ -108,7 +108,8 @@
'theme': 'explorer',
initialPreviewAsData: true,
dropZoneEnabled: true,
dropZoneTitle: "上传图片或视频",
dropZoneTitle: "上传图片",
allowedFileExtensions: ['jpg','png','bmp','jpeg'],
uploadUrl: url,
uploadAsync: false,//异步上传
enctype: 'multipart/form-data',

Loading…
Cancel
Save