Updated to use mime type on file input, changed mimeTypes hash to array for lookup