fixed 'Mimetype not accepted' error message