Just created a test php script: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Naamloos document</title> </head>
<body> <?php if(!isset($_FILES['bestand'])) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data" name="rdk" id="rdk"> <p> <input type="file" name="bestand" id="bestand"> </p> <p> <input type="submit" name="Verzenden" id="Verzenden" value="Verzenden"> <input type="reset" name="Wissen" id="Wissen" value="Herstellen"> </p> </form> <?php } else { echo $_FILES['bestand']['type']; } ?> </body> </html>
This was the result of uploading a pdf file: application/pdf
Just created a test php script: "Content- Type" content="text/html; charset=utf-8">
<html>
<head>
<meta http-equiv=
<title>Naamloos document</title>
</head>
<body> $_FILES[ 'bestand' ])) 'PHP_SELF' ]; ?>" method="post" enctype= "multipart/ form-data" name="rdk" id="rdk">
<input type="submit" name="Verzenden" id="Verzenden" value="Verzenden">
<input type="reset" name="Wissen" id="Wissen" value="Herstellen">
< /p>
< /form>
< ?php }
else
{ echo $_FILES[ 'bestand' ]['type' ]; }
? >
< /body>
< /html>
<?php if(!isset(
{ ?>
<form action="<?php echo $_SERVER[
<p>
<input type="file" name="bestand" id="bestand">
</p>
<p>
This was the result of uploading a pdf file:
application/pdf