Added mime type from file extension resolution, improved form data set construction