robert_gsfame Posted May 17, 2010 Share Posted May 17, 2010 i have used this $filetype=$_FILES["filename"]["type"]; and directly insert this into my database...the problem is that when i try to upload *doc then i got application/pdf in my database not application/doc what's wrong with this??? Link to comment https://forums.phpfreaks.com/topic/202043-doc-recognized-as-pdf/ Share on other sites More sharing options...
robert_gsfame Posted May 17, 2010 Author Share Posted May 17, 2010 this happen only in FF Link to comment https://forums.phpfreaks.com/topic/202043-doc-recognized-as-pdf/#findComment-1059507 Share on other sites More sharing options...
BizLab Posted May 17, 2010 Share Posted May 17, 2010 Maybe you can find a better doc type in the W3c list here: <a href="http://www.w3schools.com/media/media_mimeref.asp">http://www.w3schools.com/media/media_mimeref.asp</a> Link to comment https://forums.phpfreaks.com/topic/202043-doc-recognized-as-pdf/#findComment-1059518 Share on other sites More sharing options...
robert_gsfame Posted May 17, 2010 Author Share Posted May 17, 2010 i know this tutorial, this is just the problem where word document being recognized as application/pdf...it should be application/doc the worst thing is this occur in FF only not IE..no problem at all when i try to upload the file in IE Link to comment https://forums.phpfreaks.com/topic/202043-doc-recognized-as-pdf/#findComment-1059519 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.