fixed  not being converted to body for upload() call