summaryrefslogtreecommitdiff
path: root/plugins/http/uploads.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http/uploads.go')
-rw-r--r--plugins/http/uploads.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http/uploads.go b/plugins/http/uploads.go
index 2a1524ef..c936262a 100644
--- a/plugins/http/uploads.go
+++ b/plugins/http/uploads.go
@@ -31,7 +31,7 @@ const (
// Uploads tree manages uploaded files tree and temporary files.
type Uploads struct {
// associated temp directory and forbidden extensions.
- cfg *UploadsConfig
+ cfg UploadsConfig
// pre processed data tree for Uploads.
tree fileTree
@@ -114,7 +114,7 @@ func NewUpload(f *multipart.FileHeader) *FileUpload {
// STACK
// DEFER FILE CLOSE (2)
// DEFER TMP CLOSE (1)
-func (f *FileUpload) Open(cfg *UploadsConfig) (err error) {
+func (f *FileUpload) Open(cfg UploadsConfig) (err error) {
if cfg.Forbids(f.Name) {
f.Error = UploadErrorExtension
return nil