If the file contains open-source software, public domain media, or creative commons assets, downloading it is completely legal and safe.