文件上传增加样例和摘要业务文件的的总文件大小、单个文件大小、文件类型校验
This commit is contained in:
@@ -721,4 +721,18 @@ must_between=must between %s and %s
|
||||
not_number=%s is not a number
|
||||
id_not_exists=the id %s of %s is not valid
|
||||
num_split_by_comma=%s must be numbers split by comma
|
||||
#=============some validation===========
|
||||
must_be=%s must be %s
|
||||
#=============some validation===========
|
||||
#=============userregions===============
|
||||
userregion1=user region 1
|
||||
userregion2=user region 2
|
||||
userregion3=user region 3
|
||||
userregion4=user region 4
|
||||
userregion5=user region 5
|
||||
#=============userregions===============
|
||||
#=============multipart upload error info=================
|
||||
single_file_upload_size_error=The size of the file %s is %s,allowing the maximum value of a single file to be %s !
|
||||
total_file_upload_size_error=The total size of uploaded files is %s,allowing the total size of uploaded to be %s !
|
||||
file_upload_type_error=%s file type of error,allowing uploaded file type with %s!
|
||||
file_upload_error=File upload failure !
|
||||
#=============multipart upload error info=================
|
||||
@@ -705,4 +705,18 @@ must_between=must between %s and %s
|
||||
not_number=%s is not a number
|
||||
id_not_exists=the id %s of %s is not valid
|
||||
num_split_by_comma=%s must be numbers split by comma
|
||||
#=============some validation===========
|
||||
must_be=%s must be %s
|
||||
#=============some validation===========
|
||||
#=============userregions===============
|
||||
userregion1=user region 1
|
||||
userregion2=user region 2
|
||||
userregion3=user region 3
|
||||
userregion4=user region 4
|
||||
userregion5=user region 5
|
||||
#=============userregions===============
|
||||
#=============multipart upload error info=================
|
||||
single_file_upload_size_error=The size of the file %s is %s,allowing the maximum value of a single file to be %s !
|
||||
total_file_upload_size_error=The total size of uploaded files is %s,allowing the total size of uploaded to be %s !
|
||||
file_upload_type_error=%s file type of error,allowing uploaded file type with %s!
|
||||
file_upload_error=File upload failure !
|
||||
#=============multipart upload error info=================
|
||||
@@ -605,7 +605,7 @@ action=\u52A8\u4F5C
|
||||
has_prohibit_delete=\u53EA\u6709\u672A\u5BA1\u6838\u7684\u914D\u7F6E\u53EF\u5220\u9664
|
||||
has_prohibit_nopass=\u53EA\u6709\u672A\u5BA1\u6838\u7684\u914D\u7F6E\u53EF\u672A\u901A\u8FC7\u5BA1\u6838
|
||||
has_prohibit_pass=\u53EA\u6709\u672A\u5BA1\u6838\u7684\u914D\u7F6E\u53EF\u4EE5\u5BA1\u6838\u901A\u8FC7
|
||||
multiple_keywords_tip=\u53EF\u540C\u65F6\u8F93\u5165\u591A\u6761\u5173\u952E\u5B57\uFF0C\u8BF7\u4EE5\u82F1\u6587\u9017\u53F7\u6216\u8005\u56DE\u8F66\u952E\u9694\u5F00\u3002
|
||||
multiple_keywords_tip=\u53EF\u540C\u65F6\u8F93\u5165\u591A\u6761\u5173\u952E\u5B57\uFF0C\u8BF7\u4EE5\u56DE\u8F66\u952E\u9694\u5F00\u3002
|
||||
action_drop=\u4E22\u5F03
|
||||
action_reject=\u963B\u65AD
|
||||
action_redirect=\u91CD\u5B9A\u5411
|
||||
@@ -814,4 +814,26 @@ FTP_CONTENT=\u5185\u5BB9\u5173\u952E\u5B57\u914D\u7F6E
|
||||
id_not_exists=id\u4E3A%s\u7684%s\u4E0D\u5B58\u5728
|
||||
id_not_valid=id\u4E3A%s\u7684%s\u65E0\u6548
|
||||
num_split_by_comma=%s\u4E3A\u9017\u53F7\u5206\u9694\u7684\u6570\u5B57
|
||||
#=============region_value,config form title=================
|
||||
no_data=\u65E0\u76F8\u5173\u6570\u636E
|
||||
must_be=%s\u7684\u503C\u5FC5\u987B\u4E3A%s
|
||||
REDIRECT_RESPONSE_CODE=\u91CD\u5B9A\u5411\u5E94\u7B54\u7801
|
||||
permanet_redirect=\u6C38\u4E45\u91CD\u5B9A\u5411
|
||||
temporary_redirect=\u4E34\u65F6\u91CD\u5B9A\u5411
|
||||
prohibition_access=\u7981\u6B62\u8BBF\u95EE
|
||||
not_allowed_method=\u4E0D\u5141\u8BB8\u6B64\u65B9\u6CD5\u8BBF\u95EE
|
||||
law_prohibition_access=\u7531\u4E8E\u6CD5\u5F8B\u539F\u56E0\u4E0D\u53EF\u7528
|
||||
redirect_content=\u91CD\u5B9A\u5411\u5185\u5BB9
|
||||
#=============region_value,config form title=================
|
||||
#=============userregions===============
|
||||
userregion1=\u81EA\u5B9A\u4E49\u57DF1
|
||||
userregion2=\u81EA\u5B9A\u4E49\u57DF2
|
||||
userregion3=\u81EA\u5B9A\u4E49\u57DF3
|
||||
userregion4=\u81EA\u5B9A\u4E49\u57DF4
|
||||
userregion5=\u81EA\u5B9A\u4E49\u57DF5
|
||||
#=============userregions===============
|
||||
#=============multipart upload error info=================
|
||||
single_file_upload_size_error=\u6587\u4EF6%s\u7684\u5927\u5C0F\u4E3A%s\uFF0C\u5141\u8BB8\u5355\u4E2A\u6587\u4EF6\u7684\u6700\u5927\u503C\u4E3A%s\uFF01
|
||||
total_file_upload_size_error=\u4E0A\u4F20\u6587\u4EF6\u7684\u603B\u5927\u5C0F\u6700\u5927\u4E3A%s\uFF0C\u5141\u8BB8\u4E0A\u4F20\u7684\u6587\u4EF6\u603B\u5927\u5C0F\u4E3A%s\uFF01
|
||||
file_upload_type_error=%s\u6587\u4EF6\u7C7B\u578B\u51FA\u9519\uFF0C\u5141\u8BB8\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B\u6709%s\uFF01
|
||||
file_upload_error=\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF01
|
||||
#=============multipart upload error info=================
|
||||
@@ -304,8 +304,26 @@ userregion_replace_res_key_value=http_res_body
|
||||
userregion_replace_regex_key=regex
|
||||
#IP相关验证正则
|
||||
ipv4_ip_subnet_regexp=^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}/(3[0-2]|[1-2][0-9]|[0-9])$
|
||||
ipv6_ip_subnet_regexp=^\\s*((([0-9A-Fa-f]{1,4}:){7}(([0-9A-Fa-f]{1,4})|:))|(([0-9A-Fa-f]{1,4}:){6}(:|(:[0-9A-Fa-f]{1,4})))|(([0-9A-Fa-f]{1,4}:){5}((:?)|((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{1,4})))|(([0-9A-Fa-f]{1,4}\:){5}((\:?)|((\:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}\:){4}(\:[0-9A-Fa-f]{1,4}){0,1}((\:?)|((\:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}\:){3}(\:[0-9A-Fa-f]{1,4}){0,2}((\:?)|((\:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}\:){2}(\:[0-9A-Fa-f]{1,4}){0,3}((\:?)|((\:[0-9A-Fa-f]{1,4}){1,2})))|(([0-9A-Fa-f]{1,4}\:)(\:[0-9A-Fa-f]{1,4}){0,4}((\:?)|((\:[0-9A-Fa-f]{1,4}){1,2})))|(\:(\:[0-9A-Fa-f]{1,4}){0,5}((\:?)|((\:[0-9A-Fa-f]{1,4}){1,2}))))(%.+)?\\s*$
|
||||
#重定向业务自定义域相关参数
|
||||
redirect_response_code_key=code
|
||||
redirect_url_key=url
|
||||
redirect_content_key=content
|
||||
redirect_response_code_startwith=30
|
||||
#样例文件上传的uri关键词
|
||||
sample_upload_url_keyword=/av
|
||||
#样例和摘要文件大小类型设置
|
||||
sample_file_type=,mp4,flv,ivf,mp2v,
|
||||
#10M 10485760
|
||||
sample_single_file_max_size=10485760
|
||||
#12M 12582912
|
||||
sample_total_file_max_size=12582912
|
||||
digest_file_type=,txt,doc,img,
|
||||
#10M10485760
|
||||
digest_single_file_max_size=10485760
|
||||
#12M12582912
|
||||
digest_total_file_max_size=12582912
|
||||
@@ -157,7 +157,6 @@
|
||||
<property name="favorPathExtension" value="true" />
|
||||
</bean>
|
||||
|
||||
|
||||
<mvc:interceptors>
|
||||
<mvc:interceptor>
|
||||
<mvc:mapping path="/nis/**" />
|
||||
@@ -172,29 +171,29 @@
|
||||
</mvc:interceptor>
|
||||
|
||||
<!-- 数据源拦截器,该拦截路径下使用数据源B -->
|
||||
<mvc:interceptor>
|
||||
<!-- <mvc:interceptor>
|
||||
<mvc:mapping path="/service/cfg/**" />
|
||||
<bean class="com.nis.interceptor.DataSourceBInterceptor"></bean>
|
||||
</mvc:interceptor>
|
||||
</mvc:interceptor> -->
|
||||
|
||||
<!-- 数据源拦截器,该拦截路径下使用数据源C -->
|
||||
<mvc:interceptor>
|
||||
<!-- <mvc:interceptor>
|
||||
<mvc:mapping path="/service/log/**" />
|
||||
<bean class="com.nis.interceptor.DataSourceCInterceptor"></bean>
|
||||
</mvc:interceptor>
|
||||
</mvc:interceptor> -->
|
||||
|
||||
|
||||
<!-- 数据源拦截器,该拦截路径下使用数据源D,后期会删除 -->
|
||||
<mvc:interceptor>
|
||||
<!-- <mvc:interceptor>
|
||||
<mvc:mapping path="/service/test/**" />
|
||||
<bean class="com.nis.interceptor.DataSourceDInterceptor"></bean>
|
||||
</mvc:interceptor>
|
||||
</mvc:interceptor> -->
|
||||
|
||||
<!-- 数据源拦截器,该拦截路径下使用数据源E -->
|
||||
<mvc:interceptor>
|
||||
<!-- <mvc:interceptor>
|
||||
<mvc:mapping path="/service/jk/**" />
|
||||
<bean class="com.nis.interceptor.DataSourceEInterceptor"></bean>
|
||||
</mvc:interceptor>
|
||||
</mvc:interceptor> -->
|
||||
|
||||
</mvc:interceptors>
|
||||
|
||||
@@ -245,7 +244,11 @@
|
||||
</bean>
|
||||
-->
|
||||
|
||||
|
||||
<bean id="multipartResolver"
|
||||
class="com.nis.interceptor.MultipartFileIntercepter" >
|
||||
<property name="defaultEncoding" value="utf-8"></property>
|
||||
</bean>
|
||||
|
||||
<bean
|
||||
class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
|
||||
<property name="exceptionMappings">
|
||||
@@ -257,15 +260,6 @@
|
||||
</bean>
|
||||
<!-- 支持Shiro对Controller的方法级AOP安全控制 end -->
|
||||
|
||||
|
||||
<!-- 上传文件拦截,设置最大文件大小10m=10*1024*1024(B)=10485760 bytes -->
|
||||
<bean id="multipartResolver"
|
||||
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
||||
<property name="defaultEncoding" value="utf-8"></property>
|
||||
<property name="maxUploadSize" value="10737418240"></property>
|
||||
<!--<property name="maxInMemorySize" value="1000"></property> -->
|
||||
</bean>
|
||||
|
||||
<!-- 配置国际化资源文件路径 -->
|
||||
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
|
||||
<property name="basename">
|
||||
|
||||
Reference in New Issue
Block a user