From: Roland Häder Date: Tue, 29 Mar 2016 12:31:55 +0000 (+0200) Subject: Full-qualified path name "detection" added. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4376a1aa26c2698a777cbd86ef3d421f0248f39e;p=simple-upload.git Full-qualified path name "detection" added. --- diff --git a/index.php b/index.php index a8410f2..7d86636 100644 --- a/index.php +++ b/index.php @@ -94,7 +94,7 @@ $data['ignores'][] = $data['scriptname']; // Use canonized path - $data['uploaddir'] = realpath($settings['uploaddir']); + $data['uploaddir'] = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . $settings['uploaddir']); // Maximum upload size, set by system $data['max_upload_size'] = ini_get('upload_max_filesize'); @@ -253,7 +253,6 @@ unlink($file); $file_array = listFiles($settings['uploaddir'], $data['ignores']); - ?>