Adding Filetype test to download method (see issue #221)