变量filename赋值后未使用

pull/147/head
runphp 3 years ago committed by Gitee
parent 27d46fc0a4
commit 2610869e9c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -86,10 +86,7 @@ public class FileUploadUtils
*/ */
public static final String extractFilename(MultipartFile file) public static final String extractFilename(MultipartFile file)
{ {
String fileName = file.getOriginalFilename(); return DateUtils.datePath() + "/" + IdUtils.fastUUID() + "." + getExtension(file);
String extension = getExtension(file);
fileName = DateUtils.datePath() + "/" + IdUtils.fastUUID() + "." + extension;
return fileName;
} }
private static final File getAbsoluteFile(String uploadDir, String fileName) throws IOException private static final File getAbsoluteFile(String uploadDir, String fileName) throws IOException

Loading…
Cancel
Save