set right mimetype in download controller