From: s-ko Date: Sun, 21 Sep 2014 20:15:35 +0000 (+0100) Subject: Corrected list files setting default value X-Git-Url: https://git.mxchange.org/?p=simple-upload.git;a=commitdiff_plain;h=2648e0e942833a423250f224270bb6d218541a7f Corrected list files setting default value --- diff --git a/index.php b/index.php index 2f909aa..57a4407 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,7 @@ $settings['uploaddir'] = '.'; // List uploaded files - $settings['listfiles'] = '.'; + $settings['listfiles'] = true; // Relative path to this file (don't edit) $settings['scriptpath'] = $_SERVER['PHP_SELF']; @@ -32,7 +32,7 @@ ?> - Upload <?=$settings['scriptname']?> + Upload files @@ -40,7 +40,7 @@ Dropzone.options.myAwesomeDropzone = { init: function() { this.on("success", function (file, response) { - window.location.href = response; + alert(response); }); }, };