Added the ability to use a url with the doc instead of uploading the doc