forbidden-type
'.htmlspecialchars($_POST['id']).'
'
);
}
// File upload error?
if(!is_uploaded_file($tmp_filename) || !move_uploaded_file($tmp_filename, $path)) {
exit(
'
move-error
'.htmlspecialchars($_POST['id']).'
'
);
}
// Return the path to the file
exit(
'
'.htmlspecialchars($location.'server/send.php?id='.urlencode($name).'.'.urlencode($ext).'&name='.urlencode($filename)).'
'.htmlspecialchars($new_name).'
'.htmlspecialchars($_POST['id']).'
'
);
}
// Error?
else {
header('Status: 400 Bad Request', true, 400);
exit('HTTP/1.1 400 Bad Request');
}
?>