Update file route

This commit is contained in:
LinkLeong 2023-07-12 07:57:13 +01:00
parent e5b172627a
commit 9d6381d7ac

View File

@ -152,6 +152,7 @@ func InitFile() http.Handler {
fileName := path.Base(filePath)
w.Header().Add("Content-Disposition", "attachment; filename*=utf-8''"+url.PathEscape(fileName))
http.ServeFile(w, r, filePath)
//http.ServeFile(w, r, filePath)
})
}