summaryrefslogtreecommitdiff
path: root/plugins/http/uploads_config.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http/uploads_config.go')
-rw-r--r--plugins/http/uploads_config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/http/uploads_config.go b/plugins/http/uploads_config.go
index 3f655064..4c20c8e8 100644
--- a/plugins/http/uploads_config.go
+++ b/plugins/http/uploads_config.go
@@ -19,6 +19,7 @@ type UploadsConfig struct {
// InitDefaults sets missing values to their default values.
func (cfg *UploadsConfig) InitDefaults() error {
cfg.Forbid = []string{".php", ".exe", ".bat"}
+ cfg.Dir = os.TempDir()
return nil
}