improve mime type when exporting file