Hi,

I put together a simple file upload example that functions on my site;
however, a user recently pointed out that it was not working in their PHP environment.
The problem was that the uploaded files were not showing up in their "uploads" directory.
I believe the user had file/directory read/write access set correctly.

Could someone point out what is the platform or version specific feature that may be the problem.

The example is on-line here:
http://www.freedomaudio.com/examples/recorder102/index.html

The PHP source is as follows:

<?php
global $_FILES, $file, $fileID, $refresh_page;
$audioFileDirectory='uploads/';

if ($fileID != "" && $refresh_page == "1") {
echo "
";
}
else if ($fileID != "" && $file != "" && $refresh_page == "") {
if(is_uploaded_file($file)) {
$success = move_uploaded_file($file,$audioFileDirectory.$fileID.".ogg");
}
else{
echo "<SCRIPT>alert('Eeek! Save Failed')</SCRIPT>";
}
}
else {
$now=time();
$self=$_SERVER["PHP_SELF"];
$sendCommand="sendRecording('$self')";

echo "
1) Select 'Record' 2) Input your audio* 3) Select Send
*Make sure you have your system's mic or line-in enabled.
";
}

?>

Thanks!!!
Kendal
kendal @ freedomaudio.com

Reply via email to