diff options
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 |