diff options
author | Wolfy-J <[email protected]> | 2018-06-10 17:04:02 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-10 17:04:02 +0300 |
commit | 3fe85e9d92f5f98337e8f7fd9a14e6b66b9694bd (patch) | |
tree | 2575fbba16df4f95dd392f231ad7d7b30a5dd4ef /service/http/uploads.go | |
parent | 4c292ee46f5505b00b16186e8f30e9bc1be25895 (diff) |
http service
Diffstat (limited to 'service/http/uploads.go')
-rw-r--r-- | service/http/uploads.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/http/uploads.go b/service/http/uploads.go index cdd3e52c..62167a6c 100644 --- a/service/http/uploads.go +++ b/service/http/uploads.go @@ -29,7 +29,7 @@ const ( // tree manages uploaded files tree and temporary files. type Uploads struct { // associated temp directory and forbidden extensions. - cfg *FsConfig + cfg *UploadsConfig // pre processed data tree for Uploads. tree fileTree @@ -99,7 +99,7 @@ func NewUpload(f *multipart.FileHeader) *FileUpload { } } -func (f *FileUpload) Open(cfg *FsConfig) error { +func (f *FileUpload) Open(cfg *UploadsConfig) error { if cfg.Forbids(f.Name) { f.Error = UploadErrorExtension return nil |