Update API in #upload