summaryrefslogtreecommitdiff
path: root/http/uploads.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-10 17:18:23 +0300
committerWolfy-J <[email protected]>2018-06-10 17:18:23 +0300
commit094a4c211022b9446ef988c74c546ad6efb09722 (patch)
tree603ade627491960108154d6301868c9b881cd101 /http/uploads.go
parent232aa8f3c20a060e556ab431467f4f7b3f83bfbf (diff)
http service
Diffstat (limited to 'http/uploads.go')
-rw-r--r--http/uploads.go2
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