added handleUploadURL method for copying a file from a url