I wrote this piece of PHP to enable simple PHP File-Uploading with base64-strings.
Back then, it was just supposed to work (and it does). But now I want to beef it up to make this actually secure against malicious intents.
I use this script for an app of mine (file uploads):
if(isset($_GET["upload"]))
{
$contents = $_POST["contents"];
$file = fopen("filename.wav", "w");
$input = base64_decode($contents);
fwrite($file, $input);
fclose($file);
}