using scoped variable for uploadURL