From cc07998a8a84c38e6f42d3a1cd2dcc6347d4a735 Mon Sep 17 00:00:00 2001 From: James Collins Date: Wed, 26 Apr 2023 17:33:34 +1000 Subject: [PATCH] bugfix temp file creation --- app/Models/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Media.php b/app/Models/Media.php index 3840b02..27ebe56 100644 --- a/app/Models/Media.php +++ b/app/Models/Media.php @@ -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 {