forked from crony/UpFast
Fix regex.
This commit is contained in:
parent
b87a56623b
commit
821c0c91c8
2
main.go
2
main.go
@ -128,7 +128,7 @@ func Files(c echo.Context) error {
|
|||||||
ImageMatch := regexp.MustCompile("^image/.*")
|
ImageMatch := regexp.MustCompile("^image/.*")
|
||||||
VideoMatch := regexp.MustCompile("^video/.*")
|
VideoMatch := regexp.MustCompile("^video/.*")
|
||||||
JsonMatch := regexp.MustCompile("application/json")
|
JsonMatch := regexp.MustCompile("application/json")
|
||||||
TextMatch := regexp.MustCompile("^text/.*|application/octet-stream")
|
TextMatch := regexp.MustCompile("^text/.*")
|
||||||
|
|
||||||
for _, f := range filelist {
|
for _, f := range filelist {
|
||||||
filePath := "files/" + f.Name()
|
filePath := "files/" + f.Name()
|
||||||
|
Loading…
Reference in New Issue
Block a user