fixed: bug with empty download file, added mime types