added variable to define upload endpoint