changed upload dir in uploadMp3

master
Angeliki 6 years ago
parent e22fa13066
commit 5d5d10871e

@ -113,7 +113,7 @@ echo '</p></div></td>'; } ?>
<br /> <br />
<?php <?php
$files = glob("uploads/*"); $files = glob("uploads/1/*");
for ($i=0; $i<count($files); $i++) for ($i=0; $i<count($files); $i++)
{$num = $files[$i]; {$num = $files[$i];
$var1 = $_GET["files"]["name"]; $var1 = $_GET["files"]["name"];
@ -245,7 +245,7 @@ echo '<audio src='.$num.' controls></audio><br /><br />'; }
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "scripts/uploadMp3.php", url: "scripts/uploadMp3_1.php",
data: { data: {
base64: dataURL base64: dataURL
} }

@ -2,7 +2,7 @@
error_reporting(-1); error_reporting(-1);
ini_set("display_errors", "On"); ini_set("display_errors", "On");
// requires php5 // requires php5
define('UPLOAD_DIR', '../uploads/'); define('UPLOAD_DIR', '../uploads/1');
$img = $_POST['base64']; $img = $_POST['base64'];
$img = str_replace('data:audio/mp3;base64,', '', $img); $img = str_replace('data:audio/mp3;base64,', '', $img);
$img = str_replace(' ', '+', $img); $img = str_replace(' ', '+', $img);
Loading…
Cancel
Save