fixed mime type and file size on file select upload

Allow files > 2G to be uploaded when using file select button, and fix mimetype when using file select button