summaryrefslogtreecommitdiff
path: root/service/http/uploads_config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-15 15:54:14 +0300
committerWolfy-J <[email protected]>2018-06-15 15:54:14 +0300
commitdfef39c64132192d13e2315364a74f1b0244791e (patch)
treeb0959bbbb1ca5a16d94646454d7f2e9340081915 /service/http/uploads_config.go
parentccd297dbe2586b3fd29854f72f795be9e818522e (diff)
readme, samples, golint, build scripts
Diffstat (limited to 'service/http/uploads_config.go')
-rw-r--r--service/http/uploads_config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/uploads_config.go b/service/http/uploads_config.go
index 148ebba3..e90d9b70 100644
--- a/service/http/uploads_config.go
+++ b/service/http/uploads_config.go
@@ -25,7 +25,7 @@ func (cfg *UploadsConfig) TmpDir() string {
return os.TempDir()
}
-// Forbid must return true if file extension is not allowed for the upload.
+// Forbids must return true if file extension is not allowed for the upload.
func (cfg *UploadsConfig) Forbids(filename string) bool {
ext := strings.ToLower(path.Ext(filename))