diff --git a/controller/page-explorer.go b/controller/page-explorer.go index 623a61e..05c5ba5 100644 --- a/controller/page-explorer.go +++ b/controller/page-explorer.go @@ -58,7 +58,8 @@ func GetExplorerPageOrFile(c *gin.Context) { "readmeFileLink": readmeFileLink, }) } else { - c.File(filepath.Join(common.ExplorerRootPath, path)) + filename := filepath.Base(path) + c.FileAttachment(filepath.Join(common.ExplorerRootPath, path), filename) } }