PHP with HTML

Updated code to check that the uploaded file ['type'] is text/plain
before processing. If the type is incorrect, do not process the file,
and display an error in your web page above the form.