phpretard Posted January 19, 2008 Share Posted January 19, 2008 Do you need to see more code to help me figure out why this will not allow a word || a wordpad document to be uploaded? ($_FILES["form_data"]["type"] == "application/pdf") || ($_FILES["form_data"]["type"] == "application/doc") || ($_FILES["form_data"]["type"] == "application/rtf") (it does allow PDF) Quote Link to comment https://forums.phpfreaks.com/topic/86784-applicationpdf-problems/ Share on other sites More sharing options...
phpretard Posted January 19, 2008 Author Share Posted January 19, 2008 Is the question clear enough? Quote Link to comment https://forums.phpfreaks.com/topic/86784-applicationpdf-problems/#findComment-443647 Share on other sites More sharing options...
metalhead41 Posted January 19, 2008 Share Posted January 19, 2008 Do you need to see more code to help me figure out why this will not allow a word || a wordpad document to be uploaded? ($_FILES["form_data"]["type"] == "application/pdf") || ($_FILES["form_data"]["type"] == "application/doc") || ($_FILES["form_data"]["type"] == "application/rtf") (it does allow PDF) Instead of using application/doc and application/rft, use text/doc and text/rtf. Quote Link to comment https://forums.phpfreaks.com/topic/86784-applicationpdf-problems/#findComment-443651 Share on other sites More sharing options...
phpretard Posted January 19, 2008 Author Share Posted January 19, 2008 Thank you for your help!!! Quote Link to comment https://forums.phpfreaks.com/topic/86784-applicationpdf-problems/#findComment-443671 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.