box.com api v2.0. Modified upload function