|
@@ -89,6 +89,9 @@ public class UploadService {
|
|
}else {
|
|
}else {
|
|
fileName= fileName.substring(0,fileName.lastIndexOf("."));
|
|
fileName= fileName.substring(0,fileName.lastIndexOf("."));
|
|
}
|
|
}
|
|
|
|
+ if(fileName.length() >50){
|
|
|
|
+ fileName = fileName.substring(0,50);
|
|
|
|
+ }
|
|
localFile = File.createTempFile(fileName + suffixName,suffixName);
|
|
localFile = File.createTempFile(fileName + suffixName,suffixName);
|
|
file.transferTo(localFile);
|
|
file.transferTo(localFile);
|
|
String path = localFile.getPath();
|
|
String path = localFile.getPath();
|