insert("transcript", [ "name" => $cudetails[3], "message" => $message, "user" => $cudetails[2], "convid" => $cudetails[0], "class" => "download", "time" => $jakdb->raw("NOW()")]); $jakdb->update("checkstatus", ["newo" => 1, "typec" => 0], ["convid" => $cudetails[0]]); // success $msg = $jkl['s']; } else { $msg = $jkl['e8']; } } else { $msg = $jkl['e9']; } } else { $msg = $jkl['e13']; } } else { $msg = $jkl['e13']; } switch ($_FILES['uploadpp']['error']) { case 0: //$msg = "No Error"; // comment this out if you don't want a message to appear on success. break; case 1: $msg = "The file is bigger than this PHP installation allows"; break; case 2: $msg = "The file is bigger than this form allows"; break; case 3: $msg = "Only part of the file was uploaded"; break; case 4: $msg = "No file was uploaded"; break; case 6: $msg = "Missing a temporary folder"; break; case 7: $msg = "Failed to write file to disk"; break; case 8: $msg = "File upload stopped by extension"; break; default: $msg = "unknown error ".$_FILES['uploadpp']['error']; break; } if ($msg) { $stringData = $msg; } else { $stringData = $jkl['s']; // This is required for onComplete to fire on Mac OSX } echo $stringData; } ?>