From e096b6faccb9231049e1556cad3400bec61c1813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Z=C3=A1le=C5=A1=C3=A1k?= Date: Tue, 2 Feb 2021 20:31:18 +0100 Subject: [PATCH] =?UTF-8?q?Zv=C4=9Bt=C5=A1en=C3=AD=20kompresn=C3=ADho=20po?= =?UTF-8?q?m=C4=9Bru?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload.php | 4 ++-- videos/transcode.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/upload.php b/upload.php index 7034dfd..2d859f9 100644 --- a/upload.php +++ b/upload.php @@ -22,7 +22,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { } else { do { $generatedFileName = generateRandomString(); - } while (file_exists("videos/" . $generatedFileName . "." . $extension)); + } while (file_exists("./videos/" . $generatedFileName . "." . $extension)); move_uploaded_file( $_FILES["videoFile"]["tmp_name"], @@ -32,7 +32,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { $xml = $_POST["xmlFile"]; $xml = str_replace("