modify the download_url_to_tempfileobj fuction and endless test file to address endless attack issue and make a reasonable test.