Commit 5f9b5b38 by zhangkb

添加文件上传文件名转码

parent d2e0df63
......@@ -25,6 +25,7 @@ public class FileUtils {
try {
byte[] buffer = new byte[1024];
int len = 0;
path = new String(path.getBytes("GBK"),System.getProperty("sun.jnu.encoding"));
File file = new File(path);
File fileParent = file.getParentFile();
if (!fileParent.exists()) {
......
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