Smartupload 文件上传 错误收集
一、 文件扩展名不允许
java.lang.SecurityException: The extension of the file is not allowed to be
此处限定了上传的文件类型 后缀名
private static final String ALLOWEDLIST = "gif,jpg,png,jpeg";//允许上传文件类型
二、文件大小超出范围
java .1ang . SecurityException: Size exceeded for this file : five.mp4 (1105) .
每个文件上传的文件大小
private static final int MAXFILESIZE = 10*1024*1024;