Fix upload on IE

This fixes the file uploading issue on IE.

1. IE doesn't recognize "hasOwnProperty" 
2. IE doesn't recognize the MIME types if the programs are not installed in the computer. (For example, it doesn't recognize PDF if Adobe Reader is not installed)