Thread: $_files
View Single Post
10-10-2005, 04:03 PM
#5
ktsirig is offline ktsirig
Status: Junior Member
Join date: Oct 2005
Location:
Expertise:
Software:
 
Posts: 46
iTrader: 0 / 0%
 

ktsirig is on a distinguished road

  Old

thanx to all for your time,

I use :

if ($_FILES['userfile']['type']='text/plain')
{then OK}

else
{wrong file type}

but it doesn't seem to work. PHP uploads both text files and .exe files.
Any thoughts?