diff options
Diffstat (limited to 'http/uploads.go')
-rw-r--r-- | http/uploads.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/uploads.go b/http/uploads.go index 62167a6c..1f3060c0 100644 --- a/http/uploads.go +++ b/http/uploads.go @@ -112,7 +112,7 @@ func (f *FileUpload) Open(cfg *UploadsConfig) error { } defer file.Close() - tmp, err := ioutil.TempFile(cfg.Dir, "upload") + tmp, err := ioutil.TempFile(cfg.TmpDir(), "upload") if err != nil { // most likely cause of this issue is missing tmp dir f.Error = UploadErrorNoTmpDir |