windows: internal multiparts should use platform specific tempfile location

This commit is contained in:
Harshavardhana
2015-11-30 13:02:53 -08:00
parent c573ccf641
commit dbdcdff874
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ type tempFile struct {
// newTemplFile returns a new unused file.
func newTempFile(prefix string) (*tempFile, error) {
file, err := ioutil.TempFile("/tmp", prefix)
file, err := ioutil.TempFile(os.TempDir(), prefix)
if err != nil {
return nil, err
}