300000000){
$uploadValid = 0;
}
if(ctype_alnum(str_replace("_", "",str_replace(",","",$_POST["tags"]))) == false){
$uploadValid = 0;
}
if($uploadValid == 0){
showHeader();
echo '
An error has occured, please try again.
';
echo $footer;
die();
} else {
move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $location);
addImage($location, tokenToUuid($_COOKIE["meowboardSession"]), $_POST["tags"]);
showHeader();
echo 'File uploaded!
';
echo $footer;
exit();
}
} else {
showHeader();
echo 'Upload
';
echo $footer;
}
?>