Fix download bug by adding mime types.