Core: New API function - downloadFile()