PHP file upload - text?

  • Thread starter Thread starter steve.stevens1987
  • Start date Start date
S

steve.stevens1987

Guest
writing some code that allows you to upload files to the server (im using a tutorial) and i know i can just remove the check but i dont want anything like an .exe uploaded

this allows jpegs to be uploaded

($_FILES["file"]["type"] == "image/jpeg")

but i want to upload a .txt file and a .xml file and cant figure out what the correct code is.

anyone know ?

thanks
 
Back
Top