[email protected] Posted September 11, 2006 Share Posted September 11, 2006 i forgot the code for testing file types. like they turn out like: "application/octet-stream" ...etc. i have a upload script and i need to ban certain file types...what is that testing code?and if u need it, here is my upload script:[url=http://csscobalt.com/file_type_test.txt]http://csscobalt.com/file_type_test.txt[/url] Link to comment https://forums.phpfreaks.com/topic/20421-file-type-test-i-forgot-how-to-do-it/ Share on other sites More sharing options...
JayBachatero Posted September 11, 2006 Share Posted September 11, 2006 It's "$_FILES['userfile']['type']" but it seems like you already have that in your script. Link to comment https://forums.phpfreaks.com/topic/20421-file-type-test-i-forgot-how-to-do-it/#findComment-89981 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.