|
|
@@ -93,7 +93,9 @@ public class FileController {
|
|
|
if (opt.isPresent()) {
|
|
|
MediaType mediaType = opt.get();
|
|
|
response.setContentType(mediaType.toString());
|
|
|
- type = "inline";
|
|
|
+ if (mediaType.getType().equals("image") || mediaType.getType().equals("video")) {
|
|
|
+ type = "inline";
|
|
|
+ }
|
|
|
}
|
|
|
response.setHeader("Content-Disposition", type + ";filename*=utf8''" + URLEncodeUtil.encode(name));
|
|
|
|