I\'m working through a small file upload script (learning experience) and I noticed that when selecting microsoft office related files (.doc or .docx f
agree with the accepted answer, but as an FYI to someone (like me) who got stuck as to WHY this was happening for some and not others for specific file types, be aware that in Windows, if the mime isn't appropriately set in the users registry, you will get empty string. That was a fun few hours :)