|
|
@ -111,7 +111,11 @@ public class FileUploadUtils { |
|
|
|
} |
|
|
|
targetFile.createNewFile(); |
|
|
|
file.transferTo(targetFile); |
|
|
|
return Constants.RESOURCE_PREFIX + localSubPath; |
|
|
|
if (Constants.RESOURCE_PREFIX.endsWith(File.separator)) { |
|
|
|
return Constants.RESOURCE_PREFIX + localSubPath; |
|
|
|
} else { |
|
|
|
return Constants.RESOURCE_PREFIX + File.separator + localSubPath; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|