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