export upload function
Update JS files accordingly for handling requests
Add handle parameter to route function