|
@@ -421,7 +421,11 @@ public class StoreCommentServiceImpl extends ServiceImpl<StoreCommentMapper, Sto
|
|
|
StringBuilder imgId = new StringBuilder();
|
|
|
for (int i = 0; i < fileNameSet.size(); i++) {
|
|
|
MultipartFile multipartFile = multipartRequest.getFileMap().get(fileNameSet.get(i));
|
|
|
- if (null != multipartFile) {
|
|
|
+ //b
|
|
|
+ System.out.println(multipartFile.getSize());
|
|
|
+ //kb
|
|
|
+ System.out.println(multipartFile.getSize() / 1024);
|
|
|
+ if (null != multipartFile && multipartFile.getSize() / 1024 > 0) {
|
|
|
byte[] fileByte;
|
|
|
try {
|
|
|
fileByte = multipartFile.getBytes();
|