Use General::getMimeType to determine uploaded file mimetype instead of relying on the browser. Fixes #1609