add - logic to call api for an edit token
add - call in upload url to fetch edit token