Commit 11054999 authored by m1991's avatar m1991

资讯模块——邀请码过滤特殊字符功能功能修复

parent b393d06b
......@@ -187,7 +187,7 @@ public class UploadServiceImpl implements UploadService {
for (MultipartFile file : files) {
//判断上传文件格式
String fileType = file.getContentType();
log.error(file.getSize() + "");
log.info(file.getSize() + "");
if (("image/jpeg").equals(fileType) || ("image/png").equals(fileType) || ("image/gif").equals(fileType) || ("image/jpg").equals(fileType) || ("image/bmp").equals(fileType) || ("application/octet-stream").equals(fileType)) {
//上传后保存的文件名(需要防止图片重名导致的文件覆盖)
//获取文件名
......
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