Displaying an uploaded file from $_FILES
问题 I'm having some issues with uploading files from HTML to a PHP based web server. The following is my HTML code. No issues here I believe. <html> <body> <form action="upload.php" method="post" enctype="multipart/form-data" action="2.2.2.cgi"> <input type="file" name="file" id="file" size="35"><br> <input type="submit" name="submit" id="submit" value="Submit"> </form> </body> </html> PHP code: <?php define ('MAX_FILE_SIZE', 1000000); $permitted = array('image/gif', 'image/jpeg', 'image/png',