how can i add my custom metadata details while uploading ??

Started on the old forum in December 2020 · view the original in the archive · old links redirect here

No replies · 50 views · started 5 years ago · 1 min read

ayesham Developer · 69 posts #1
include 'connect.php';
if(isset($_POST['sub'])){
$t=$_POST['title'];
$a=$_POST['artist'];
$l=$_POST['lyrics'];
$m=$_POST['music'];
$c=$_POST['category'];

//code for mp3 uploading
if($_FILES['f1']['name']){
move_uploaded_file($_FILES['f1']['tmp_name'], "files/".$_FILES['f1']['name']);
$mp3path="../".$_FILES['f1']['name'];
$filepath="files/".$_FILES['f1']['name'];
$size = $_FILES['f1']['size'] /1024;

}

$i="insert into files(title,artist,cover,lyrics,music,mp3path,size ,c ategory,filepath)values('$t','$a','$cv','$l ','$m','$mp3path','$size','$c','$filepath' )";
if(mysqli_query($con, $i)){
echo " Your Mp3 is Uploaded successfully..! <br/>";
}
} 

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close