Keep the extension in temp files
The file extension helps some applications like ImageMagick to properly process files
This commit is contained in:
parent
0868e49663
commit
8d6b2b8867
|
@ -42,7 +42,7 @@ class TempManager implements ITempManager {
|
|||
}
|
||||
|
||||
protected function generatePath($postFix) {
|
||||
return $this->tmpBaseDir . '/oc_tmp_' . md5(time() . rand()) . $postFix;
|
||||
return $this->tmpBaseDir . '/oc_tmp_' . md5(time() . rand()) . '.' . $postFix;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue