I have been thinking and thinking about different solutions to a web page I'm working on.
I have users, that will be able to upload their sound files to my site.
Since people don't know how to convert things the right way, I guess there might be different things showing up.
I would like the users to be able to upload either a wav or mp3 file and nothing else.
Is there ready scripts out there that I can copy and paste and modify? I guess people have been doing this before, so I guess there might be one or many working codes.
What I need is a form where the user can upload a file to a dir on my server.
Probably the file size might be as large as 30MB sometimes (if using wav).
But I want the script to only accept mp3 or wav files.
I found a code that might be a part of what I'm looking for, but not everything.
Any ideas or maybe someone knows where I should look?
Or is it a simple code just adding bits to this code?
// Upload location
//$sound_path = getcwd().DIRECTORY_SEPARATOR;
$sound_path = "audio/";
$result = 0;
$goal_path = $sound_path . basename( $_fileS['myfile']['name']);
$result = 1;