Got base_uri working once I read the docs properly
Add debug option
Upload now works
Remove debug puts