From b1d3139a77a3d0cf02bb23ab94fbf2b2894ad7d9 Mon Sep 17 00:00:00 2001 From: nokonoko Date: Wed, 18 Nov 2020 13:37:23 +0100 Subject: [PATCH] Update upload.php --- static/php/upload.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/php/upload.php b/static/php/upload.php index 877e5ef..879d68d 100644 --- a/static/php/upload.php +++ b/static/php/upload.php @@ -17,8 +17,8 @@ function generateName($file) global $doubledots; // We start at N retries, and --N until we give up - $tries = POMF_FILES_RETRIES; - $length = POMF_FILES_LENGTH; + $tries = UGUU_FILES_RETRIES; + $length = UGUU_FILES_LENGTH; //Get EXT $ext = pathinfo($file->name, PATHINFO_EXTENSION); //Get mime @@ -99,7 +99,7 @@ function uploadFile($file) $newname = generateName($file); // Store the file's full file path in memory - $uploadFile = POMF_FILES_ROOT.$newname; + $uploadFile = UGUU_FILES_ROOT.$newname; // Attempt to move it to the static directory if (!move_uploaded_file($file->tempfile, $uploadFile)) { @@ -131,7 +131,7 @@ function uploadFile($file) return [ 'hash' => $file->getSha1(), 'name' => $file->name, - 'url' => POMF_URL.rawurlencode($newname), + 'url' => UGUU_URL.rawurlencode($newname), 'size' => $file->size, ]; }