bugfix temp file creation

This commit is contained in:
2023-04-26 17:33:34 +10:00
parent 178309bb1e
commit cc07998a8a

View File

@@ -304,7 +304,7 @@ class Media extends Model
$this->status = 'Processing media';
$this->save();
$temporaryFilePath = tempnam(sys_get_temp_dir(), 'upload');
$temporaryFilePath = generateTempFilePath();
copy($file->path(), $temporaryFilePath);
try {