Bugfix for file upload fields and custom mime types