/// <summary> /// 上传数据 /// </summary> /// <param name="data">待上传的数据</param> /// <param name="key">要保存的文件名称</param> /// <param name="token">上传凭证</param> /// <param name="extra">上传可选设置</param> /// <returns>上传文件后的返回结果</returns> public HttpResult UploadData(byte[] data, string key, string token, PutExtra extra) { FormUploader formUploader = new FormUploader(this.config); return(formUploader.UploadData(data, key, token, extra)); }
/// <summary> /// 上传数据 /// </summary> /// <param name="data">待上传的数据</param> /// <param name="key">要保存的文件名称</param> /// <param name="token">上传凭证</param> /// <param name="extra">上传可选设置</param> /// <returns>上传文件后的返回结果</returns> public Task <HttpResult> UploadData(byte[] data, string key, string token, PutExtra extra) { var formUploader = new FormUploader(_config); return(formUploader.UploadData(data, key, token, extra)); }