fix upload when no url is provided