throw runtime error on upload while url is not set