Compare commits

...

1 Commits

Author SHA1 Message Date
LinkLeong
9d6381d7ac Update file route 2023-07-12 07:57:13 +01:00

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)
})
}