Commit 6d6551e7 authored by Ryan Loong's avatar Ryan Loong

fix 文件导出类型的contentType

parent 20243f5a
......@@ -55,7 +55,9 @@ public class PointController {
FileInputStream in = null;
try {
in = new FileInputStream(file);
return ResponseUtil.ok(storageService.store(in, file.length(), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", file.getName(), storageService.generateKey(file.getName())));
// return ResponseUtil.ok(storageService.store(in, file.length(), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", file.getName(), storageService.generateKey(file.getName())));
return ResponseUtil.ok(storageService.store(in, file.length(), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8", file.getName(), storageService.generateKey(file.getName())));
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
} finally {
......
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