Always determine mime type by filename since latest version of express does not pass it in uploads.