update to the new upload api

cc @willwhite