Upload DOC or PDF using PHP

I’m able to upload images fine, but when when I change the types from image/jpg, image/gif to application/msword and application/pdf, it doesn’t work. Here’s my code. The exact same code works for images, but for uploading docs and pdf, it outputs “Invalid File.” What’s going on here? My file is only approx 30kb and is well under the file size limit here.