detect_urls method would serve the urls to the file object