Update download.php

This commit is contained in:
SuperDev
2022-12-22 13:42:57 -06:00
committed by GitHub
parent 688fb64b6a
commit e2f7de6984

View File

@@ -32,10 +32,11 @@ $maxsize = max_size;
$file = $_GET['file'];
$fileURL = base64_decode($file);
$filesize = filesize($fileURL);
$baseurl = file_url_destination;
// Check if file exists
if(!file_exists($fileURL){
header("Location: " . file_url_destination);
header('Location: ' . $baseurl);
}
$core = new Core();