From 5d5d10871e99f3c5823ab98064cf5b7b69bb32dd Mon Sep 17 00:00:00 2001
From: Angeliki
Date: Tue, 28 May 2019 20:58:52 +0200
Subject: [PATCH] changed upload dir in uploadMp3
---
podcast1.php | 4 ++--
scripts/{uploadMp3.php => uploadMp3_1.php} | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
rename scripts/{uploadMp3.php => uploadMp3_1.php} (89%)
diff --git a/podcast1.php b/podcast1.php
index 816d04e..f83e84d 100644
--- a/podcast1.php
+++ b/podcast1.php
@@ -113,7 +113,7 @@ echo '
'; } ?>
'; }
$.ajax({
type: "POST",
- url: "scripts/uploadMp3.php",
+ url: "scripts/uploadMp3_1.php",
data: {
base64: dataURL
}
diff --git a/scripts/uploadMp3.php b/scripts/uploadMp3_1.php
similarity index 89%
rename from scripts/uploadMp3.php
rename to scripts/uploadMp3_1.php
index d36c7d4..113e4c9 100644
--- a/scripts/uploadMp3.php
+++ b/scripts/uploadMp3_1.php
@@ -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);