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) 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? 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. 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!!! Link to comment https://forums.phpfreaks.com/topic/86784-applicationpdf-problems/#findComment-443671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.