File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ async function uploadBlobToFileSearchStore(fileSearchStoreName: string) {
6767 file : BLOB ,
6868 config : {
6969 customMetadata : [ { key : 'author' , stringValue : 'foo' } ] ,
70+ displayName : 'a blob name' ,
7071 } ,
7172 } ) ;
7273 while ( ! op . done ) {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import {Auth} from './_auth.js';
88import * as common from './_common.js' ;
99import { Downloader } from './_downloader.js' ;
1010import { Uploader } from './_uploader.js' ;
11+ import { uploadToFileSearchStoreConfigToMldev } from './converters/_filesearchstores_converters.js' ;
1112import { ApiError } from './errors.js' ;
1213import * as types from './types.js' ;
1314
@@ -726,11 +727,8 @@ export class ApiClient {
726727 const path = `upload/v1beta/${ fileSearchStoreName } :uploadToFileSearchStore` ;
727728 const fileName = this . getFileName ( file ) ;
728729 const body : Record < string , unknown > = { } ;
729- if ( config ?. customMetadata ) {
730- body [ 'customMetadata' ] = config . customMetadata ;
731- }
732- if ( config ?. chunkingConfig ) {
733- body [ 'chunkingConfig' ] = config . chunkingConfig ;
730+ if ( config != null ) {
731+ uploadToFileSearchStoreConfigToMldev ( config , body ) ;
734732 }
735733 const uploadUrl = await this . fetchUploadUrl (
736734 path ,
You can’t perform that action at this time.
0 commit comments