check if we are uploading a url first