I\'m struggling to make this upload code work for a docx file, it works okay for doc and pdf..
$allowedExts = array(\"pdf\", \"doc\", \"docx\"); $extension =
For docx check this MIME type
docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document
EDIT :
Here's the code . You're missing parenthesis
0) { echo "Return Code: " . $_FILES["file"]["error"] . ""; } else { echo "Success"; } }